public function MenuTreeStorage::maxDepth in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Menu/MenuTreeStorage.php \Drupal\Core\Menu\MenuTreeStorage::maxDepth()
The maximum depth of tree the storage implementation supports.
Return value
int The maximum depth.
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 130
Class
- MenuTreeStorage
- Provides a menu tree storage using the database.
Namespace
Drupal\Core\MenuCode
public function maxDepth() {
return static::MAX_DEPTH;
}