constant MENU_MAX_DEPTH

The maximum depth of a menu links tree - matches the number of p columns.

@todo Move this constant to MenuLinkStorageController along with all the tree functionality.

Related topics

18 uses of MENU_MAX_DEPTH
book_menu_subtree_data in drupal/core/modules/book/book.module
Gets the data representing a subtree of the book hierarchy.
book_node_view_link in drupal/core/modules/book/book.module
Adds relevant book links to the node's links.
book_update_bid in drupal/core/modules/book/book.module
Updates the book ID of a page and its children when it moves to a new book.
MenuHierarchy::query in drupal/core/modules/views/lib/Drupal/views/Plugin/views/sort/MenuHierarchy.php
Called to add the sort to a query.
MenuLinkFormController::form in drupal/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkFormController.php
Overrides EntityFormController::form().

... See full list

File

drupal/core/includes/menu.inc, line 286
API for the Drupal menu system.

Code

const MENU_MAX_DEPTH = 9;