function RouterInterface::getRouteCollection
Gets the RouteCollection instance associated with this Router.
WARNING: This method should never be used at runtime as it is SLOW. You might use it in a cache warmer though.
3 methods override RouterInterface::getRouteCollection()
- AccessAwareRouter::getRouteCollection in core/
lib/ Drupal/ Core/ Routing/ AccessAwareRouter.php - Gets the RouteCollection instance associated with this Router.
- Router::getRouteCollection in core/
lib/ Drupal/ Core/ Routing/ Router.php - Gets the RouteCollection instance associated with this Router.
- Router::getRouteCollection in vendor/
symfony/ routing/ Router.php - Gets the RouteCollection instance associated with this Router.
File
-
vendor/
symfony/ routing/ RouterInterface.php, line 32
Class
- RouterInterface
- RouterInterface is the interface that all Router classes must implement.
Namespace
Symfony\Component\RoutingCode
public function getRouteCollection() : RouteCollection;