<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) LOCKON CO.,LTD. All Rights Reserved.
*
* http://www.lockon.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Plugin\DetailPageImage;
use Eccube\Event\TemplateEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class DetailPageImageEvent implements EventSubscriberInterface
{
public static function getSubscribedEvents()
{
return [
'Product/detail.twig' => 'onProduct',
];
}
public function onProduct(TemplateEvent $event)
{
$event->addSnippet('@DetailPageImage/front/add_detail.twig');
}
}