Hook actionGetAdminToolbarButtons


Allows to add buttons in any toolbar in the back office:

This hook allows you to define descriptions of buttons to add in any toolbar of the back office

Hook locations:

  • back office

Hook type: action

Located in:

Parameters details

        'controller' => (AdminController) $currentController,
        'toolbar_extra_buttons_collection' => (ActionsBarButtonsCollection) $toolbarButtonsCollection,

Call of the Hook in the origin file

Hook::exec('actionGetAdminToolbarButtons', [
                'controller' => $this,
                'toolbar_extra_buttons_collection' => &$toolbarButtonsCollection,