You are here

InitSubscriber.php in Javascript Timer 8

File

src/EventSubscriber/InitSubscriber.php
View source
<?php

/**
 * @file
 * Contains \Drupal\jstimer\EventSubscriber\InitSubscriber.
 */
namespace Drupal\jstimer\EventSubscriber;

use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
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_js(variable_get('jstimer_timerjs_path', ''), 'file');
  }

}

Classes

Namesort descending Description
InitSubscriber