function MenuTreeStorage::maxDepth

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

Overrides MenuTreeStorageInterface::maxDepth

3 calls to MenuTreeStorage::maxDepth()
MenuTreeStorage::loadLinks in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
Loads links in the given menu, according to the given tree parameters.
MenuTreeStorage::moveChildren in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
Re-parents a link's children when the link itself is moved.
MenuTreeStorage::setParents in core/lib/Drupal/Core/Menu/MenuTreeStorage.php
Sets the materialized path field values based on the parent.

File

core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 104

Class

MenuTreeStorage
Provides a menu tree storage using the database.

Namespace

Drupal\Core\Menu

Code

public function maxDepth() {
    return static::MAX_DEPTH;
}

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