function 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 293
Class
- MenuLinkTree
- Implements the loading, transforming and rendering of menu link trees.
Namespace
Drupal\Core\MenuCode
public function maxDepth() {
return $this->treeStorage
->maxDepth();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.