protected function 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\MenuCode
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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!MenuTreeStorage.php/function/MenuTreeStorage::doBuildTreeData/8.1.x