app/Plugin/PageBuilderSmartIT42/Event.php line 24

Open in your IDE?
  1. <?php
  2. namespace Plugin\PageBuilderSmartIT42;
  3. use Eccube\Event\TemplateEvent;
  4. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  5. class Event implements EventSubscriberInterface
  6. {
  7.     /**
  8.      * @return array
  9.      */
  10.     public static function getSubscribedEvents(): array
  11.     {
  12.         return [
  13.             'default_frame.twig' => 'includeModule',
  14.         ];
  15.     }
  16.     /**
  17.      * @noinspection PhpUnused
  18.      * @param  TemplateEvent  $event
  19.      */
  20.     public function includeModule(TemplateEvent $event)
  21.     {
  22.         $event->addAsset('@PageBuilderSmartIT42/client/styles.twig');
  23.     }
  24. }