public function MenuTokenSubscriber::onController in Menu Token 8
Same name and namespace in other branches
- 9.1.x src/EventSubscriber/MenuTokenSubscriber.php \Drupal\menu_token\EventSubscriber\MenuTokenSubscriber::onController()
The CONTROLLER event occurs once a controller was found.
Parameters
\Symfony\Component\HttpKernel\Event\FilterControllerEvent $event: The controller event.
For handling a request. Constant KernelEvents::CONTROLLER.
File
- src/
EventSubscriber/ MenuTokenSubscriber.php, line 39
Class
- MenuTokenSubscriber
- Event Subscriber MenuTokenSubscriber.
Namespace
Drupal\menu_token\EventSubscriberCode
public function onController(FilterControllerEvent $event) {
$this->menuTokenContextManager
->replaceContextualLinks();
}