protected function RouteBuilder::getRouteDefinitions in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Routing/RouteBuilder.php \Drupal\Core\Routing\RouteBuilder::getRouteDefinitions()
- 9 core/lib/Drupal/Core/Routing/RouteBuilder.php \Drupal\Core\Routing\RouteBuilder::getRouteDefinitions()
Retrieves all defined routes from .routing.yml files.
Return value
array The defined routes, keyed by provider.
File
- core/
lib/ Drupal/ Core/ Routing/ RouteBuilder.php, line 231
Class
- RouteBuilder
- Managing class for rebuilding the router table.
Namespace
Drupal\Core\RoutingCode
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();
}