Version 1
[yaffs-website] / web / modules / contrib / typogrify / src / EventSubscriber / InitSubscriber.php
1 <?php
2
3 namespace Drupal\typogrify\EventSubscriber;
4
5 use Symfony\Component\HttpKernel\KernelEvents;
6 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
7
8 /**
9  * Class \Drupal\typogrify\EventSubscriber\InitSubscriber.
10  */
11 class InitSubscriber implements EventSubscriberInterface {
12
13   /**
14    * {@inheritdoc}
15    */
16   public static function getSubscribedEvents() {
17     return [KernelEvents::REQUEST => ['onEvent', 0]];
18   }
19
20   public function onEvent() {
21     // @FIXME
22 // The Assets API has totally changed. CSS, JavaScript, and libraries are now
23 // attached directly to render arrays using the #attached property.
24 //
25 //
26 // @see https://www.drupal.org/node/2169605
27 // @see https://www.drupal.org/node/2408597
28 // drupal_add_css(drupal_get_path('module', 'typogrify') . '/typogrify.css');
29
30   }
31
32 }