<?php
/*
* This file is part of CustomerGroupRank
*
* Copyright(c) Akira Kurozumi <info@a-zumi.net>
*
* https://a-zumi.net
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Plugin\CustomerGroupRank42;
use Eccube\Event\TemplateEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class Event implements EventSubscriberInterface
{
/**
* @return string[]
*/
public static function getSubscribedEvents(): array
{
return [
'@CustomerGroup42/admin/Customer/Group/edit.twig' => 'onTemplateAdminCustomerGroupEdit',
];
}
/**
* @param TemplateEvent $event
*
* @return void
*/
public function onTemplateAdminCustomerGroupEdit(TemplateEvent $event): void
{
$event->addSnippet('@CustomerGroupRank42/admin/Customer/Group/edit.twig');
}
}