<?php
/*
* Plugin Name : DeliveryPlus4
*
* Copyright (C) BraTech Co., Ltd. All Rights Reserved.
* http://www.bratech.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Plugin\DeliveryPlus42\Event;
use Eccube\Event\TemplateEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class AdminSettingEvent implements EventSubscriberInterface
{
/**
* @return array
*/
public static function getSubscribedEvents()
{
return [
'@admin/Setting/Shop/delivery_edit.twig' => 'onTemplateAdminSettingShopDeliveryEdit',
];
}
public function onTemplateAdminSettingShopDeliveryEdit(TemplateEvent $event)
{
$twig = '@DeliveryPlus42/admin/Setting/Shop/delivery_condition.twig';
$event->addSnippet($twig);
$js = '@DeliveryPlus42/admin/Setting/Shop/delivery_condition.js';
$event->addAsset($js);
}
}