Hook actionGetAdminOrderButtons


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

       '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

                    '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.