local/modules/AdminOrderCreation/Hook/Back/OrderHook.php line 18

  1. <?php
  2. /*************************************************************************************/
  3. /*      This file is part of the module AdminOrderCreation                           */
  4. /*                                                                                   */
  5. /*      For the full copyright and license information, please view the LICENSE.txt  */
  6. /*      file that was distributed with this source code.                             */
  7. /*************************************************************************************/
  8. namespace AdminOrderCreation\Hook\Back;
  9. use AdminOrderCreation\AdminOrderCreation;
  10. use Thelia\Core\Event\Hook\HookRenderEvent;
  11. use Thelia\Core\Hook\BaseHook;
  12. use Thelia\Core\Thelia;
  13. class OrderHook extends BaseHook
  14. {
  15.     public function onOrdersTableHeader(HookRenderEvent $event)
  16.     {
  17.         $event->add($this->render(
  18.             'admin-order-creation/hook/orders.table-header.html',
  19.             $event->getArguments()
  20.         ));
  21.     }
  22.     public function onOrderJs(HookRenderEvent $event)
  23.     {
  24.         $event->add($this->render(
  25.             'admin-order-creation/hook/orders.js.html',
  26.             array_merge($event->getArguments() + [
  27.             ])
  28.         ));
  29.     }
  30. }