Hook actionGetAdminOrderButtons

Information

Admin Order Buttons:

This hook is used to generate the buttons collection on the order view page (see ActionsBarButtonsCollection)

Hook locations:

  • back office

Hook type: action

Located in:

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.