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) |
Origin | File |
---|---|
core | src/PrestaShopBundle/Controller/Admin/Sell/Order/OrderController.php |
<?php
array(
'controller' => (OrderController) Symfony controller,
'id_order' => (int) Order ID,
'actions_bar_buttons_collection' => (ActionsBarButtonsCollection) Collection of ActionsBarButtonInterface
);
dispatchHook(
'actionGetAdminOrderButtons',
[
'controller' => $this,
'id_order' => $orderId,
'actions_bar_buttons_collection' => $back officeOrderButtons,
]
)
This hook has been implemented as an example in our modules examples repository - demovieworderhooks.