public MenuLinkContent::setRequiresRediscovery($rediscovery)
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()
File
- core/modules/menu_link_content/src/Entity/MenuLinkContent.php, line 377
Class
- MenuLinkContent
- Defines the menu link content entity class.
Namespace
Drupal\menu_link_content\Entity
Code
public function setRequiresRediscovery($rediscovery) { $this->set('rediscover', $rediscovery); return $this; }
Please login to continue.