<?php
/*
* SendAllMails4 Plugin
*
* Copyright (c) 2021 Nobuhiko Kimoto
*
* @see LICENSE
*/
namespace Plugin\SendAllMails42;
use Eccube\Event\TemplateEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class Event implements EventSubscriberInterface
{
/**
* @return array
*/
public static function getSubscribedEvents()
{
return [
'@admin/Order/index.twig' => 'onRenderAdminOrder',
];
}
public function onRenderAdminOrder(TemplateEvent $event)
{
$event->addSnippet('@SendAllMails42/admin/button.twig');
}
}