public function MenuLinkContent::setRequiresRediscovery in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/menu_link_content/src/Entity/MenuLinkContent.php \Drupal\menu_link_content\Entity\MenuLinkContent::setRequiresRediscovery()
Flags a link as requiring rediscovery.
Parameters
bool $rediscovery: Whether or not the link requires rediscovery.
Return value
$this The instance on which the method was called.
Overrides MenuLinkContentInterface::setRequiresRediscovery
See also
\Drupal\menu_link_content\MenuLinkContentInterface::requiresRediscovery()
1 call to MenuLinkContent::setRequiresRediscovery()
- MenuLinkContent::preSave in core/
modules/ menu_link_content/ src/ Entity/ MenuLinkContent.php - Acts on an entity before the presave hook is invoked.
File
- core/
modules/ menu_link_content/ src/ Entity/ MenuLinkContent.php, line 388 - Contains \Drupal\menu_link_content\Entity\MenuLinkContent.
Class
- MenuLinkContent
- Defines the menu link content entity class.
Namespace
Drupal\menu_link_content\EntityCode
public function setRequiresRediscovery($rediscovery) {
$this
->set('rediscover', $rediscovery);
return $this;
}