public static function RouterPathTranslatorSubscriber::getSubscribedEvents in Decoupled Router 8
Same name and namespace in other branches
- 2.x src/EventSubscriber/RouterPathTranslatorSubscriber.php \Drupal\decoupled_router\EventSubscriber\RouterPathTranslatorSubscriber::getSubscribedEvents()
1 method overrides RouterPathTranslatorSubscriber::getSubscribedEvents()
- RedirectPathTranslatorSubscriber::getSubscribedEvents in src/
EventSubscriber/ RedirectPathTranslatorSubscriber.php - Returns an array of event names this subscriber wants to listen to.
File
- src/
EventSubscriber/ RouterPathTranslatorSubscriber.php, line 321
Class
- RouterPathTranslatorSubscriber
- Event subscriber that processes a path translation with the router info.
Namespace
Drupal\decoupled_router\EventSubscriberCode
public static function getSubscribedEvents() {
$events[PathTranslatorEvent::TRANSLATE][] = [
'onPathTranslation',
];
return $events;
}