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