EventSubscriber.html.twig in Drupal 7 to 8/9 Module Upgrader 8
Contains \Drupal\{{ module }}\EventSubscriber\{{ class }}.
File
templates/EventSubscriber.html.twigView source
- /**
- * @file
- * Contains \Drupal\{{ module }}\EventSubscriber\{{ class }}.
- */
-
- namespace Drupal\{{ module }}\EventSubscriber;
-
- use Symfony\Component\HttpKernel\KernelEvents;
- use Symfony\Component\EventDispatcher\EventSubscriberInterface;
-
- class {{ class }} implements EventSubscriberInterface {
-
- /**
- * {@inheritdoc}
- */
- public static function getSubscribedEvents() {
- return [ {{ event }} => ['onEvent', {{ priority }}]];
- }
-
- }