function MenuLinkBase::isExpanded

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::isExpanded()
  2. 8.9.x core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::isExpanded()
  3. 11.x core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::isExpanded()

Overrides MenuLinkInterface::isExpanded

1 method overrides MenuLinkBase::isExpanded()
ViewsMenuLink::isExpanded in core/modules/views/src/Plugin/Menu/ViewsMenuLink.php
Returns whether the child menu links should always been shown.

File

core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 66

Class

MenuLinkBase
Defines a base menu link class.

Namespace

Drupal\Core\Menu

Code

public function isExpanded() {
    return (bool) $this->pluginDefinition['expanded'];
}

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