Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewsMenuLink.php

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal