You are here

public function MenuTokenSubscriber::onController in Menu Token 9.1.x

Same name and namespace in other branches
  1. 8 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\EventSubscriber

Code

public function onController(FilterControllerEvent $event) {
  $this->menuTokenContextManager
    ->replaceContextualLinks();
}