MenuRouterRebuildSubscriber::onRouterRebuild

public MenuRouterRebuildSubscriber::onRouterRebuild(Event $event)

Rebuilds the menu links and deletes the local_task cache tag.

Parameters

\Symfony\Component\EventDispatcher\Event $event: The event object.

File

core/lib/Drupal/Core/EventSubscriber/MenuRouterRebuildSubscriber.php, line 48

Class

MenuRouterRebuildSubscriber
Rebuilds the default menu links and runs menu-specific code if necessary.

Namespace

Drupal\Core\EventSubscriber

Code

public function onRouterRebuild(Event $event) {
  $this->menuLinksRebuild();
  Cache::invalidateTags(array('local_task'));
}
doc_Drupal
2016-10-29 09:27:28
Comments
Leave a Comment

Please login to continue.