public function MenuLinkTree::getExpanded in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Menu/MenuLinkTree.php \Drupal\Core\Menu\MenuLinkTree::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.
Overrides MenuLinkTreeInterface::getExpanded
File
- core/
lib/ Drupal/ Core/ Menu/ MenuLinkTree.php, line 299 - Contains \Drupal\Core\Menu\MenuLinkTree.
Class
- MenuLinkTree
- Implements the loading, transforming and rendering of menu link trees.
Namespace
Drupal\Core\MenuCode
public function getExpanded($menu_name, array $parents) {
return $this->treeStorage
->getExpanded($menu_name, $parents);
}