PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 30, 2023
Let's talk code, commerce and open source.

Hook actionGetAdminToolbarButtons

Information

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

    <?php
    [
        '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,
            ])