This document contains information for an outdated version and may not be maintained any more. If some of your projects still use this version, consider upgrading as soon as possible.

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.

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

Now enable this extension through your [config.yml](/en/3.3/topics/configuration/) file.

    - MyAdminExtension

The following extension points are available: updateEditForm(), updateSearchContext(), updateSearchForm(), updateList(), updateImportForm.

Was this article helpful?