local/modules/CreditNote/Hook/Back/CustomerEditHook.php line 39

  1. <?php
  2. /*************************************************************************************/
  3. /*      This file is part of the module CreditNote                                   */
  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 CreditNote\Hook\Back;
  9. use CreditNote\CreditNote;
  10. use Thelia\Core\Event\Hook\HookRenderEvent;
  11. use Thelia\Core\Hook\BaseHook;
  12. use Thelia\Core\Thelia;
  13. /**
  14.  * @author Gilles Bourgeat >gilles.bourgeat@gmail.com>
  15.  */
  16. class CustomerEditHook extends BaseHook
  17. {
  18.     public function onCustomerEdit(HookRenderEvent $event)
  19.     {
  20.         $event->add($this->render(
  21.             'hook/customer.edit.html',
  22.             array_merge($event->getArguments(), [
  23.             ])
  24.         ));
  25.     }
  26.     public function onCustomerEditBottom(HookRenderEvent $event)
  27.     {
  28.         $event->add($this->render(
  29.             'includes/credit-note-modal.html',
  30.             array_merge($event->getArguments(), [])
  31.         ));
  32.     }
  33.     public function onCustomerEditJs(HookRenderEvent $event)
  34.     {
  35.         $event->add($this->render(
  36.             'includes/credit-note-js.html',
  37.             array_merge($event->getArguments(), [])
  38.         ));
  39.     }
  40. }