protected RouteBuilder::getRouteDefinitions()
Retrieves all defined routes from .routing.yml files.
array The defined routes, keyed by provider.
protected function getRouteDefinitions() { // Always instantiate a new YamlDiscovery object so that we always search on // the up-to-date list of modules. $discovery = new YamlDiscovery('routing', $this->moduleHandler->getModuleDirectories()); return $discovery->findAll(); }
© 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!Routing!RouteBuilder.php/function/RouteBuilder::getRouteDefinitions/8.1.x