You are here

public function MenuLinkBase::isExpanded in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Menu/MenuLinkBase.php \Drupal\Core\Menu\MenuLinkBase::isExpanded()

Returns whether the child menu links should always been shown.

Return value

bool TRUE for expanded, FALSE otherwise.

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'];
}