X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Ftemplates%2FEventSubscriber.html.twig;fp=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Ftemplates%2FEventSubscriber.html.twig;h=7c7c42152ae0f0934ea19d82c8adb2d9d6381821;hb=8acec36f19c470dfcda1ae2336826a782f41874c;hp=0000000000000000000000000000000000000000;hpb=e0411c4e83ba0d079034db83c3f7f55be24a0e35;p=yaffs-website diff --git a/web/modules/contrib/drupalmoduleupgrader/templates/EventSubscriber.html.twig b/web/modules/contrib/drupalmoduleupgrader/templates/EventSubscriber.html.twig new file mode 100644 index 000000000..7c7c42152 --- /dev/null +++ b/web/modules/contrib/drupalmoduleupgrader/templates/EventSubscriber.html.twig @@ -0,0 +1,20 @@ +/** + * @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 }}]]; + } + +}