function PathAliasSubscriber::getSubscribedEvents
Same name in other branches
- 9 core/modules/path_alias/src/EventSubscriber/PathAliasSubscriber.php \Drupal\path_alias\EventSubscriber\PathAliasSubscriber::getSubscribedEvents()
- 11.x core/modules/path_alias/src/EventSubscriber/PathAliasSubscriber.php \Drupal\path_alias\EventSubscriber\PathAliasSubscriber::getSubscribedEvents()
Registers the methods in this class that should be listeners.
Return value
array An array of event listener definitions.
File
-
core/
modules/ path_alias/ src/ EventSubscriber/ PathAliasSubscriber.php, line 72
Class
- PathAliasSubscriber
- Provides a path subscriber that converts path aliases.
Namespace
Drupal\path_alias\EventSubscriberCode
public static function getSubscribedEvents() : array {
$events[KernelEvents::CONTROLLER][] = [
'onKernelController',
200,
];
$events[KernelEvents::TERMINATE][] = [
'onKernelTerminate',
200,
];
return $events;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.