function MenuLinkTreeInterface::getSubtreeHeight
Same name in other branches
- 9 core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php \Drupal\Core\Menu\MenuLinkTreeInterface::getSubtreeHeight()
- 8.9.x core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php \Drupal\Core\Menu\MenuLinkTreeInterface::getSubtreeHeight()
- 11.x core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php \Drupal\Core\Menu\MenuLinkTreeInterface::getSubtreeHeight()
Finds the height of a subtree rooted by of the given ID.
Parameters
string $id: The ID of an item in the storage.
Return value
int Returns the height of the subtree. This will be at least 1 if the ID exists, or 0 if the ID does not exist in the storage.
File
-
core/
lib/ Drupal/ Core/ Menu/ MenuLinkTreeInterface.php, line 114
Class
- MenuLinkTreeInterface
- Defines an interface for loading, transforming and rendering menu link trees.
Namespace
Drupal\Core\MenuCode
public function getSubtreeHeight($id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.