function MenuLinkDefault::isResettable

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/MenuLinkDefault.php \Drupal\Core\Menu\MenuLinkDefault::isResettable()
  2. 10 core/lib/Drupal/Core/Menu/MenuLinkDefault.php \Drupal\Core\Menu\MenuLinkDefault::isResettable()
  3. 11.x core/lib/Drupal/Core/Menu/MenuLinkDefault.php \Drupal\Core\Menu\MenuLinkDefault::isResettable()

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());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.