RouteProviderLazyBuilder::getRoutesPaged

public RouteProviderLazyBuilder::getRoutesPaged($offset, $length = NULL) Find an amount of routes with an offset and possible a limit. In case you want to iterate over all routes, you want to avoid to load all routes at once. Parameters int $offset: The sequence will start with that offset in the list of all routes. int $length [optional]: The sequence will have that many routes in it. If no length is specified all routes are returned. Return value \Symfony\Component\Routing\Route[] Routes ke

RouteProviderLazyBuilder::getRoutesCount

public RouteProviderLazyBuilder::getRoutesCount() Determines the total amount of routes. Return value int Overrides PagedRouteProviderInterface::getRoutesCount File core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 121 Class RouteProviderLazyBuilder A Route Provider front-end for all Drupal-stored routes. Namespace Drupal\Core\Routing Code public function getRoutesCount() { return $this->getRouteProvider()->getRoutesCount(); }

RouteProviderLazyBuilder::getRoutesByPattern

public RouteProviderLazyBuilder::getRoutesByPattern($pattern) Get all routes which match a certain pattern. Parameters string $pattern: The route pattern to search for (contains {} as placeholders). Return value \Symfony\Component\Routing\RouteCollection Returns a route collection of matching routes. Overrides RouteProviderInterface::getRoutesByPattern File core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 92 Class RouteProviderLazyBuilder A Route Provider front-end for all

RouteProviderLazyBuilder::getRoutesByNames

public RouteProviderLazyBuilder::getRoutesByNames($names) Find many routes by their names using the provided list of names. Note that this method may not throw an exception if some of the routes are not found or are not actually Route instances. It will just return the list of those Route instances it found. This method exists in order to allow performance optimizations. The simple implementation could be to just repeatedly call $this->getRouteByName() while catching and ignoring eventual ex

RouteProviderLazyBuilder::getRouteProvider

protected RouteProviderLazyBuilder::getRouteProvider() Gets the real route provider service and rebuilds the router id necessary. Return value \Drupal\Core\Routing\RouteProviderInterface The route provider service. File core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 53 Class RouteProviderLazyBuilder A Route Provider front-end for all Drupal-stored routes. Namespace Drupal\Core\Routing Code protected function getRouteProvider() { if (!$this->rebuilt) { $this-&

RouteProviderLazyBuilder::getRouteCollectionForRequest

public RouteProviderLazyBuilder::getRouteCollectionForRequest(Request $request) Finds routes that may potentially match the request. This may return a mixed list of class instances, but all routes returned must extend the core symfony route. The classes may also implement RouteObjectInterface to link to a content document. This method may not throw an exception based on implementation specific restrictions on the url. That case is considered a not found - returning an empty array. Exceptions ar

RouteProviderLazyBuilder::getRouteByName

public RouteProviderLazyBuilder::getRouteByName($name) Find the route using the provided route name. Parameters string $name The route name to fetch.: Return value Route Throws RouteNotFoundException If there is no route with that name in this repository Overrides RouteProviderInterface::getRouteByName File core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 71 Class RouteProviderLazyBuilder A Route Provider front-end for all Drupal-stored routes. Namespace Drupal\Core\Ro

RouteProviderLazyBuilder::getAllRoutes

public RouteProviderLazyBuilder::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/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 99 Class RouteProviderL

RouteProviderLazyBuilder::$routeProvider

The route provider service. Type: \Drupal\Core\Routing\RouteProviderInterface File core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 18 Class RouteProviderLazyBuilder A Route Provider front-end for all Drupal-stored routes. Namespace Drupal\Core\Routing Code protected $routeProvider;

RouteProviderLazyBuilder::$routeBuilder

The route building service. Type: \Drupal\Core\Routing\RouteBuilderInterface File core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 25 Class RouteProviderLazyBuilder A Route Provider front-end for all Drupal-stored routes. Namespace Drupal\Core\Routing Code protected $routeBuilder;