public function MenuLinkDefault::isResettable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Menu/MenuLinkDefault.php \Drupal\Core\Menu\MenuLinkDefault::isResettable()
Returns whether this link can be reset.
In general, only links that store overrides using the menu_link.static.overrides service should return TRUE for this method.
Return value
bool TRUE if it can be reset, FALSE otherwise.
Overrides MenuLinkBase::isResettable
File
- core/
lib/ Drupal/ Core/ Menu/ MenuLinkDefault.php, line 83 - Contains \Drupal\Core\Menu\MenuLinkDefault.
Class
- MenuLinkDefault
- Provides a default implementation for menu link plugins.
Namespace
Drupal\Core\MenuCode
public function isResettable() {
// The link can be reset if it has an override.
return (bool) $this->staticOverride
->loadOverride($this
->getPluginId());
}