You are here

public function ViewsMenuLink::isExpanded in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/Menu/ViewsMenuLink.php \Drupal\views\Plugin\Menu\ViewsMenuLink::isExpanded()
  2. 9 core/modules/views/src/Plugin/Menu/ViewsMenuLink.php \Drupal\views\Plugin\Menu\ViewsMenuLink::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'];
}