Version 1
[yaffs-website] / web / modules / contrib / typogrify / src / EventSubscriber / InitSubscriber.php
diff --git a/web/modules/contrib/typogrify/src/EventSubscriber/InitSubscriber.php b/web/modules/contrib/typogrify/src/EventSubscriber/InitSubscriber.php
new file mode 100644 (file)
index 0000000..a0d9e73
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+namespace Drupal\typogrify\EventSubscriber;
+
+use Symfony\Component\HttpKernel\KernelEvents;
+use Symfony\Component\EventDispatcher\EventSubscriberInterface;
+
+/**
+ * Class \Drupal\typogrify\EventSubscriber\InitSubscriber.
+ */
+class InitSubscriber implements EventSubscriberInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function getSubscribedEvents() {
+    return [KernelEvents::REQUEST => ['onEvent', 0]];
+  }
+
+  public function onEvent() {
+    // @FIXME
+// The Assets API has totally changed. CSS, JavaScript, and libraries are now
+// attached directly to render arrays using the #attached property.
+//
+//
+// @see https://www.drupal.org/node/2169605
+// @see https://www.drupal.org/node/2408597
+// drupal_add_css(drupal_get_path('module', 'typogrify') . '/typogrify.css');
+
+  }
+
+}