public static function LanguageRequestSubscriber::getSubscribedEvents in Drupal 9
Same name and namespace in other branches
- 8 core/modules/language/src/EventSubscriber/LanguageRequestSubscriber.php \Drupal\language\EventSubscriber\LanguageRequestSubscriber::getSubscribedEvents()
- 10 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.
File
- core/
modules/ language/ src/ EventSubscriber/ LanguageRequestSubscriber.php, line 106
Class
- LanguageRequestSubscriber
- Sets the $request property on the language manager.
Namespace
Drupal\language\EventSubscriberCode
public static function getSubscribedEvents() {
$events[KernelEvents::REQUEST][] = [
'onKernelRequestLanguage',
255,
];
$events[DrupalKernelInterface::CONTAINER_INITIALIZE_SUBREQUEST_FINISHED][] = [
'onContainerInitializeSubrequestFinished',
255,
];
return $events;
}