public 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 78
Class
- MenuLinkDefault
- Provides a default implementation for menu link plugins.
Namespace
Drupal\Core\Menu
Code
public function isResettable() { // The link can be reset if it has an override. return (bool) $this->staticOverride->loadOverride($this->getPluginId()); }
Please login to continue.