Skip to content

Instantly share code, notes, and snippets.

@kinglozzer
Created October 8, 2014 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kinglozzer/fc76feee2d805608f798 to your computer and use it in GitHub Desktop.
Save kinglozzer/fc76feee2d805608f798 to your computer and use it in GitHub Desktop.
<?php
class SomeModelAdmin extends ModelAdmin {
private static $managed_models = array(
"MyDataObject"
);
public function getEditForm($id = null, $fields = null) {
$form = parent::getEditForm($id, $fields);
$gridField = $form->Fields()->dataFieldByName('MyDataObject');
$gridField->getConfig()->getComponentByType('GridFieldPaginator')->setItemsPerPage(100);
return $form;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment