You are here

public function PagedRouteProviderInterface::getRoutesPaged in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/PagedRouteProviderInterface.php \Symfony\Cmf\Component\Routing\PagedRouteProviderInterface::getRoutesPaged()

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 keyed by the route name.

1 method overrides PagedRouteProviderInterface::getRoutesPaged()
RouteProvider::getRoutesPaged in core/lib/Drupal/Core/Routing/RouteProvider.php
Find an amount of routes with an offset and possible a limit.

File

vendor/symfony-cmf/routing/PagedRouteProviderInterface.php, line 34

Class

PagedRouteProviderInterface
Interface for a provider which allows to retrieve a limited amount of routes.

Namespace

Symfony\Cmf\Component\Routing

Code

public function getRoutesPaged($offset, $length = null);