MenuLinkContentInterface::requiresRediscovery

public MenuLinkContentInterface::requiresRediscovery()

Returns whether the menu link requires rediscovery.

If a menu-link points to a user-supplied path such as /blog then the route this resolves to needs to be rediscovered as the module or route providing a given path might change over time.

For example: at the time a menu-link is created, the /blog path might be provided by a route in Views module, but later this path may be served by the Panels module. Flagging a link as requiring rediscovery ensures that if the route that provides a user-entered path changes over time, the link is flexible enough to update to reflect these changes.

Return value

bool TRUE if the menu link requires rediscovery during route rebuilding.

File

core/modules/menu_link_content/src/MenuLinkContentInterface.php, line 116

Class

MenuLinkContentInterface
Defines an interface for custom menu links.

Namespace

Drupal\menu_link_content

Code

public function requiresRediscovery();
doc_Drupal
2016-10-29 09:26:48
Comments
Leave a Comment

Please login to continue.