RouteProvider::preLoadRoutes

public RouteProvider::preLoadRoutes($names) Pre-load routes by their names using the provided list of names. This method exists in order to allow performance optimizations. It allows pre-loading serialized routes that may latter be retrieved using ::getRoutesByName() Parameters string[] $names: Array of route names to load. Overrides PreloadableRouteProviderInterface::preLoadRoutes File core/lib/Drupal/Core/Routing/RouteProvider.php, line 196 Class RouteProvider A Route Provider front-end

RouteProvider::getSubscribedEvents

static RouteProvider::getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) array('eventN

RouteProvider::getRoutesPaged

public RouteProvider::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 keyed by the

RouteProvider::getRoutesCount

public RouteProvider::getRoutesCount() Determines the total amount of routes. Return value int Overrides PagedRouteProviderInterface::getRoutesCount File core/lib/Drupal/Core/Routing/RouteProvider.php, line 420 Class RouteProvider A Route Provider front-end for all Drupal-stored routes. Namespace Drupal\Core\Routing Code public function getRoutesCount() { return $this->connection->query("SELECT COUNT(*) FROM {" . $this->connection->escapeTable($this->tableName) . "}")

RouteProvider::getRoutesByPattern

public RouteProvider::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/RouteProvider.php, line 310 Class RouteProvider A Route Provider front-end for all Drupal-stored routes. Namespa

RouteProvider::getRoutesByPath

protected RouteProvider::getRoutesByPath($path) Get all routes which match a certain pattern. Parameters string $path: The route pattern to search for (contains % as placeholders). Return value \Symfony\Component\Routing\RouteCollection Returns a route collection of matching routes. File core/lib/Drupal/Core/Routing/RouteProvider.php, line 325 Class RouteProvider A Route Provider front-end for all Drupal-stored routes. Namespace Drupal\Core\Routing Code protected function getRoutesBy

RouteProvider::getRoutesByNames

public RouteProvider::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 exceptions. I

RouteProvider::getRouteCollectionForRequest

public RouteProvider::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 are only used

RouteProvider::getRouteByName

public RouteProvider::getRouteByName($name) Find the route using the provided route name (and parameters). Parameters string $name: The route name to fetch Return value \Symfony\Component\Routing\Route The found route. Throws \Symfony\Component\Routing\Exception\RouteNotFoundException Thrown if there is no route with that name in this repository. Overrides RouteProviderInterface::getRouteByName File core/lib/Drupal/Core/Routing/RouteProvider.php, line 184 Class RouteProvider A Route Pro

RouteProvider::getCandidateOutlines

protected RouteProvider::getCandidateOutlines(array $parts) Returns an array of path pattern outlines that could match the path parts. Parameters array $parts: The parts of the path for which we want candidates. Return value array An array of outlines that could match the specified path parts. File core/lib/Drupal/Core/Routing/RouteProvider.php, line 250 Class RouteProvider A Route Provider front-end for all Drupal-stored routes. Namespace Drupal\Core\Routing Code protected function