Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

Hook actionGetAdminToolbarButtons

Informations

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 actionGetAdminToolbarButtons
Locations
BO
Type action
Origin core
Aliases

Located in

Origin File
core classes/controller/AdminController.php

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,
            ])