Drupal 8  8.0.2
MenuRouterRebuildSubscriber Class Reference
Inheritance diagram for MenuRouterRebuildSubscriber:

Public Member Functions

 __construct (LockBackendInterface $lock, MenuLinkManagerInterface $menu_link_manager)
 
 onRouterRebuild (Event $event)
 

Static Public Member Functions

static getSubscribedEvents ()
 

Protected Member Functions

 menuLinksRebuild ()
 

Protected Attributes

 $lock
 
 $menuLinkManager
 

Detailed Description

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

Constructor & Destructor Documentation

__construct ( LockBackendInterface  $lock,
MenuLinkManagerInterface  $menu_link_manager 
)

Constructs the MenuRouterRebuildSubscriber object.

Parameters
\Drupal\Core\Lock\LockBackendInterface$lockThe lock backend.
\Drupal\Core\Menu\MenuLinkManagerInterface$menu_link_managerThe menu link plugin manager.

References Drupal\lock().

Here is the call graph for this function:

Member Function Documentation

static getSubscribedEvents ( )
static

{}

menuLinksRebuild ( )
protected

Perform menu-specific rebuilding.

References db_transaction(), and Drupal\lock().

Referenced by MenuRouterRebuildSubscriber\onRouterRebuild().

Here is the call graph for this function:

Here is the caller graph for this function:

onRouterRebuild ( Event  $event)

Rebuilds the menu links and deletes the local_task cache tag.

Parameters
\Symfony\Component\EventDispatcher\Event$eventThe event object.

References Cache\invalidateTags(), and MenuRouterRebuildSubscriber\menuLinksRebuild().

Here is the call graph for this function:

Field Documentation

Drupal Core Menu MenuLinkManagerInterface $menuLinkManager
protected

The menu link plugin manager.


The documentation for this class was generated from the following file: