public MenuTreeParameters::setMaxDepth($max_depth)
The IDs from the currently active menu link to the root of the whole tree. This is an array of menu link plugin IDs, representing the trail
Provides a value object to model menu tree parameters. Menu tree parameters are used to determine the set of definitions to be loaded from
The conditions used to restrict which links are loaded. An associative array of custom query condition key/value pairs.
public MenuTreeParameters::setMinDepth($min_depth)
public MenuTreeParameters::setRoot($root)
public MenuTreeParameters::onlyEnabledLinks()
The maximum depth of menu links in the resulting tree relative to the root. Type: int|null File
public MenuTreeParameters::excludeRoot()
public MenuTreeParameters::addExpandedParents(array $parents)
Page 1 of 2