drupalmoduleupgrader-8.x-1.5/templates/EventSubscriber.html.twig
templates/EventSubscriber.html.twig
/**
* @file
* Contains \Drupal\{{ module }}\EventSubscriber\{{ class }}.
*/
namespace Drupal\{{ module }}\EventSubscriber;
use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Contracts\EventDispatcher\EventSubscriberInterface;
class {{ class }} implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
return [ {{ event }} => ['onEvent', {{ priority }}]];
}
}
