public property 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 53

Class

MenuTreeParameters
Provides a value object to model menu tree parameters.

Namespace

Drupal\Core\Menu

Code

public $expandedParents = array();

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!MenuTreeParameters.php/property/MenuTreeParameters::expandedParents/8.1.x