3 * Contains \Drupal\{{ module }}\EventSubscriber\{{ class }}.
6 namespace Drupal\{{ module }}\EventSubscriber;
8 use Symfony\Component\HttpKernel\KernelEvents;
9 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
11 class {{ class }} implements EventSubscriberInterface {
16 public static function getSubscribedEvents() {
17 return [ {{ event }} => ['onEvent', {{ priority }}]];