function ViewsMenuLink::isExpanded

Same name in other branches
  1. 8.9.x core/modules/views/src/Plugin/Menu/ViewsMenuLink.php \Drupal\views\Plugin\Menu\ViewsMenuLink::isExpanded()
  2. 10 core/modules/views/src/Plugin/Menu/ViewsMenuLink.php \Drupal\views\Plugin\Menu\ViewsMenuLink::isExpanded()
  3. 11.x core/modules/views/src/Plugin/Menu/ViewsMenuLink.php \Drupal\views\Plugin\Menu\ViewsMenuLink::isExpanded()

Overrides MenuLinkBase::isExpanded

File

core/modules/views/src/Plugin/Menu/ViewsMenuLink.php, line 125

Class

ViewsMenuLink
Defines menu links provided by views.

Namespace

Drupal\views\Plugin\Menu

Code

public function isExpanded() {
    return (bool) $this->loadView()->display_handler
        ->getOption('menu')['expanded'];
}

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