app/Plugin/SendAllMails42/Event.php line 28

Open in your IDE?
  1. <?php
  2. /*
  3.  * SendAllMails4 Plugin
  4.  *
  5.  * Copyright (c) 2021 Nobuhiko Kimoto
  6.  *
  7.  * @see LICENSE
  8.  */
  9. namespace Plugin\SendAllMails42;
  10. use Eccube\Event\TemplateEvent;
  11. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  12. class Event implements EventSubscriberInterface
  13. {
  14.     /**
  15.      * @return array
  16.      */
  17.     public static function getSubscribedEvents()
  18.     {
  19.         return [
  20.             '@admin/Order/index.twig' => 'onRenderAdminOrder',
  21.         ];
  22.     }
  23.     public function onRenderAdminOrder(TemplateEvent $event)
  24.     {
  25.         $event->addSnippet('@SendAllMails42/admin/button.twig');
  26.     }
  27. }