You are here

public function MenuLinkTree::maxDepth in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Menu/MenuLinkTree.php \Drupal\Core\Menu\MenuLinkTree::maxDepth()
  2. 10 core/lib/Drupal/Core/Menu/MenuLinkTree.php \Drupal\Core\Menu\MenuLinkTree::maxDepth()

Returns the maximum depth of tree that is supported.

Return value

int The maximum depth.

Overrides MenuLinkTreeInterface::maxDepth

File

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

Class

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

Namespace

Drupal\Core\Menu

Code

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