MenuTreeStorage::collectRoutesAndDefinitions

protected MenuTreeStorage::collectRoutesAndDefinitions(array $tree, array &$definitions)

Traverses the menu tree and collects all the route names and definitions.

Parameters

array $tree: The menu tree you wish to operate on.

array $definitions: An array to accumulate definitions by reference.

Return value

array Array of route names, with all values being unique.

File

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

Class

MenuTreeStorage
Provides a menu tree storage using the database.

Namespace

Drupal\Core\Menu

Code

protected function collectRoutesAndDefinitions(array $tree, array &$definitions) {
  return array_values($this->doCollectRoutesAndDefinitions($tree, $definitions));
}
doc_Drupal
2016-10-29 09:27:35
Comments
Leave a Comment

Please login to continue.