You are here

class InitSubscriber in Javascript Timer 8

Hierarchy

  • class \Drupal\jstimer\EventSubscriber\InitSubscriber implements \Symfony\Component\EventDispatcher\EventSubscriberInterface

Expanded class hierarchy of InitSubscriber

1 string reference to 'InitSubscriber'
jstimer.services.yml in ./jstimer.services.yml
jstimer.services.yml
1 service uses InitSubscriber
init_subscriber in ./jstimer.services.yml
Drupal\jstimer\EventSubscriber\InitSubscriber

File

src/EventSubscriber/InitSubscriber.php, line 11
Contains \Drupal\jstimer\EventSubscriber\InitSubscriber.

Namespace

Drupal\jstimer\EventSubscriber
View source
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');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
InitSubscriber::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to.
InitSubscriber::onEvent public function