You are here

static function LanguageRequestSubscriber::getSubscribedEvents in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php \Drupal\language\EventSubscriber\LanguageRequestSubscriber::getSubscribedEvents()

Registers the methods in this class that should be listeners.

Return value

array An array of event listener definitions.

Overrides EventSubscriberInterface::getSubscribedEvents

File

core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php, line 99
Contains \Drupal\language\EventSubscriber\LanguageRequestSubscriber.

Class

LanguageRequestSubscriber
Sets the $request property on the language manager.

Namespace

Drupal\language\EventSubscriber

Code

static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = array(
    'onKernelRequestLanguage',
    255,
  );
  return $events;
}