MenuTreeStorage::doBuildTreeData

protected MenuTreeStorage::doBuildTreeData(array $links, array $parents = array(), $depth = 1)

Prepares the data for calling $this->treeDataRecursive().

File

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

Class

MenuTreeStorage
Provides a menu tree storage using the database.

Namespace

Drupal\Core\Menu

Code

1
2
3
4
5
protected function doBuildTreeData(array $links, array $parents = array(), $depth = 1) {
  // Reverse the array so we can use the more efficient array_pop() function.
  $links = array_reverse($links);
  return $this->treeDataRecursive($links, $parents, $depth);
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.