function MenuLinkTree::getSubtreeHeight

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Menu/MenuLinkTree.php \Drupal\Core\Menu\MenuLinkTree::getSubtreeHeight()
  2. 10 core/lib/Drupal/Core/Menu/MenuLinkTree.php \Drupal\Core\Menu\MenuLinkTree::getSubtreeHeight()
  3. 11.x core/lib/Drupal/Core/Menu/MenuLinkTree.php \Drupal\Core\Menu\MenuLinkTree::getSubtreeHeight()

Overrides MenuLinkTreeInterface::getSubtreeHeight

File

core/lib/Drupal/Core/Menu/MenuLinkTree.php, line 296

Class

MenuLinkTree
Implements the loading, transforming and rendering of menu link trees.

Namespace

Drupal\Core\Menu

Code

public function getSubtreeHeight($id) {
    return $this->treeStorage
        ->getSubtreeHeight($id);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.