SilverStripe\Admin\ModelAdmin::getList
You can override how ModelAdmin returns DataObjects by either overloading this method, or defining an extension to ModelAdmin that implements the `updateList` method (and takes a {@link \SilverStripe\ORM\DataList} as the first argument).
For example, you might want to do this if this particular ModelAdmin should only ever show objects where an Archived flag is set to false. That would be best done as an extension, for example: <code> public function updateList(\SilverStripe\ORM\DataList $list) { return $list->filter('Archived', false); } </code>
Signature
public function getList()
Returns
- DataList