Easy way to change table records per page select options to remove "ALL"
I am trying to remove "ALL" from table pagination 'per-page', I can change using below code for One resource.. is there an easy way to not included "ALL" in all resource?
protected function getTableRecordsPerPageSelectOptions(): array
{
return [5, 10, 25, 50];
}