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

Breadcrumb

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

MenuTreeParameters::$expandedParents

An array of parent link IDs.

This restricts the tree to only menu links that are at the top level or have a parent ID in this list. If empty, the whole menu tree is built.

Type: string[]

File

core/lib/Drupal/Core/Menu/MenuTreeParameters.php, line 50

Class

MenuTreeParameters
Provides a value object to model menu tree parameters.

Namespace

Drupal\Core\Menu

Code

public $expandedParents = [];
RSS feed
Powered by Drupal