Rebuilds the default menu links and runs menu-specific code if necessary.
Name | Modifiers | Type | Description |
---|---|---|---|
MenuRouterRebuildSubscriber::$lock | protected | property | |
MenuRouterRebuildSubscriber::$menuLinkManager | protected | property | The menu link plugin manager. |
MenuRouterRebuildSubscriber::getSubscribedEvents | static | function | Returns an array of event names this subscriber wants to listen to. Overrides EventSubscriberInterface::getSubscribedEvents |
MenuRouterRebuildSubscriber::menuLinksRebuild | protected | function | Perform menu-specific rebuilding. |
MenuRouterRebuildSubscriber::onRouterRebuild | public | function | Rebuilds the menu links and deletes the local_task cache tag. |
MenuRouterRebuildSubscriber::__construct | public | function | Constructs the MenuRouterRebuildSubscriber object. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!EventSubscriber!MenuRouterRebuildSubscriber.php/class/MenuRouterRebuildSubscriber/8.1.x