Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / templates / EventSubscriber.html.twig
1 /**
2  * @file
3  * Contains \Drupal\{{ module }}\EventSubscriber\{{ class }}.
4  */
5
6 namespace Drupal\{{ module }}\EventSubscriber;
7
8 use Symfony\Component\HttpKernel\KernelEvents;
9 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
10
11 class {{ class }} implements EventSubscriberInterface {
12
13   /**
14    * {@inheritdoc}
15    */
16   public static function getSubscribedEvents() {
17     return [ {{ event }} => ['onEvent', {{ priority }}]];
18   }
19
20 }