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

Breadcrumb

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

function MenuLinkTreeInterface::getExpanded

Finds expanded links in a menu given a set of possible parents.

Parameters

string $menu_name: The menu name.

array $parents: One or more parent IDs to match.

Return value

array The menu link IDs that are flagged as expanded in this menu.

1 method overrides MenuLinkTreeInterface::getExpanded()
MenuLinkTree::getExpanded in core/lib/Drupal/Core/Menu/MenuLinkTree.php
Finds expanded links in a menu given a set of possible parents.

File

core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php, line 137

Class

MenuLinkTreeInterface
Defines an interface for loading, transforming and rendering menu link trees.

Namespace

Drupal\Core\Menu

Code

public function getExpanded($menu_name, array $parents);

API Navigation

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