protected MenuTreeStorage::collectRoutesAndDefinitions(array $tree, array &$definitions)
Traverses the menu tree and collects all the route names and definitions.
array $tree: The menu tree you wish to operate on.
array $definitions: An array to accumulate definitions by reference.
array Array of route names, with all values being unique.
protected function collectRoutesAndDefinitions(array $tree, array &$definitions) { return array_values($this->doCollectRoutesAndDefinitions($tree, $definitions)); }
© 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::collectRoutesAndDefinitions/8.1.x