Hook actionGetAdminOrderButtons

Informations

Admin Order Buttons This hook is used to generate the buttons collection on the order view page (see ActionsBarButtonsCollection)
Hook actionGetAdminOrderButtons
Locations
BO
Type action
Origin core
Aliases
Description This hook is used to generate the buttons collection on the order view page (see ActionsBarButtonsCollection)

Located in

Origin File
core src/PrestaShopBundle/Controller/Admin/Sell/Order/OrderController.php

Parameters details

    <?php
    array(
       'controller' => (OrderController) Symfony controller,
       'id_order' => (int) Order ID,
       'actions_bar_buttons_collection' => (ActionsBarButtonsCollection) Collection of ActionsBarButtonInterface
    );

Call of the Hook in the origin file

dispatchHook(
                'actionGetAdminOrderButtons',
                [
                    'controller' => $this,
                    'id_order' => $orderId,
                    'actions_bar_buttons_collection' => $back officeOrderButtons,
                ]
            )

Example implementation

This hook has been implemented as an example in our modules examples repository - demovieworderhooks.