public function ViewsMenuLink::isExpanded in Drupal 9
Same name and namespace in other branches
- 8 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()
Returns whether the child menu links should always been shown.
Return value
bool TRUE for expanded, FALSE otherwise.
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\MenuCode
public function isExpanded() {
return (bool) $this
->loadView()->display_handler
->getOption('menu')['expanded'];
}