public function MenuLinkTree::maxDepth

public 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 280

Class

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

Namespace

Drupal\Core\Menu

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!MenuLinkTree.php/function/MenuLinkTree::maxDepth/8.1.x