app/Plugin/OrderBulkDelete4/Event.php line 31

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of OrderBulkDelete4
  4.  *
  5.  * Copyright(c) U-Mebius Inc. All Rights Reserved.
  6.  *
  7.  * https://umebius.com/
  8.  *
  9.  * For the full copyright and license information, please view the LICENSE
  10.  * file that was distributed with this source code.
  11.  */
  12. namespace Plugin\OrderBulkDelete4;
  13. use Eccube\Event\TemplateEvent;
  14. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  15. class Event implements EventSubscriberInterface
  16. {
  17.     /**
  18.      * @return array
  19.      */
  20.     public static function getSubscribedEvents()
  21.     {
  22.         return [
  23.             '@admin/Order/index.twig' => 'onAdminOrderIndexTwig',
  24.         ];
  25.     }
  26.     public function onAdminOrderIndexTwig(TemplateEvent $event)
  27.     {
  28.         $event->addSnippet('@OrderBulkDelete4/admin/Order/index_js.twig');
  29.     }
  30. }