Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / templates / EventSubscriber.html.twig
diff --git a/web/modules/contrib/drupalmoduleupgrader/templates/EventSubscriber.html.twig b/web/modules/contrib/drupalmoduleupgrader/templates/EventSubscriber.html.twig
new file mode 100644 (file)
index 0000000..7c7c421
--- /dev/null
@@ -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 }}]];
+  }
+
+}