Extending existing ModelAdmin#

Sometimes you'll work with ModelAdmins from other modules. To customise these interfaces, you can always subclass. But there's also another tool at your disposal: The Extension API.

php
	class MyAdminExtension extends Extension {
		// ...
		public function updateEditForm(&$form) {
			$form->Fields()->push(/* ... */)
		}
	}

yaml
	MyAdmin:
	  extensions:
	    - MyAdminExtension

updateSearchForm(), updateList(), updateImportForm.