public function RouteProvider::getAllRoutes in Drupal 8
Same name in this branch
- 8 core/tests/Drupal/KernelTests/RouteProvider.php \Drupal\KernelTests\RouteProvider::getAllRoutes()
- 8 core/lib/Drupal/Core/Routing/RouteProvider.php \Drupal\Core\Routing\RouteProvider::getAllRoutes()
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/RouteProvider.php \Drupal\KernelTests\RouteProvider::getAllRoutes()
Returns all the routes on the system.
Usage of this method is discouraged for performance reasons. If possible, use RouteProviderInterface::getRoutesByNames() or RouteProviderInterface::getRoutesByPattern() instead.
Return value
\Symfony\Component\Routing\Route[] An iterator of routes keyed by route name.
Overrides RouteProviderInterface::getAllRoutes
File
- core/
tests/ Drupal/ KernelTests/ RouteProvider.php, line 84
Class
- RouteProvider
- Rebuilds the router when the provider is instantiated.
Namespace
Drupal\KernelTestsCode
public function getAllRoutes() {
return $this
->lazyLoadItself()
->getAllRoutes();
}