function ViewsMenuLink::isExpanded
Same name in other branches
- 9 core/modules/views/src/Plugin/Menu/ViewsMenuLink.php \Drupal\views\Plugin\Menu\ViewsMenuLink::isExpanded()
- 10 core/modules/views/src/Plugin/Menu/ViewsMenuLink.php \Drupal\views\Plugin\Menu\ViewsMenuLink::isExpanded()
- 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 132
Class
- ViewsMenuLink
- Defines menu links provided by views.
Namespace
Drupal\views\Plugin\MenuCode
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.