app/Plugin/MypageInvoice/MypageInvoiceEvent.php line 28

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of EC-CUBE
  4.  *
  5.  * Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
  6.  *
  7.  * http://www.lockon.co.jp/
  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\MypageInvoice;
  13. use Eccube\Event\TemplateEvent;
  14. use Symfony\Component\EventDispatcher\EventSubscriberInterface;
  15. class MypageInvoiceEvent implements EventSubscriberInterface
  16. {
  17.     public static function getSubscribedEvents()
  18.     {
  19.         return [
  20.             'Mypage/history.twig' => 'onRenderMypageHistory',
  21.         ];
  22.     }
  23.     public function onRenderMypageHistory(TemplateEvent $event)
  24.     {
  25.         $event->addSnippet('@MypageInvoice/default/add_btn.twig');
  26.     }
  27. }