public function RouteProviderInterface::getRoutesByNames

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. It will just return the list of those routes it found.

This method exists in order to allow performance optimizations. The simple implementation could be to just repeatedly call $this->getRouteByName()

Parameters

array $names the list of names to retrieve:

array $parameters the parameters as they are passed to the: UrlGeneratorInterface::generate call. (Only one array, not one for each entry in $names.

Return value

\Symfony\Component\Routing\Route[] iterable thing with the keys the names of the $names argument.

2 methods override RouteProviderInterface::getRoutesByNames()
MockRouteProvider::getRoutesByNames in drupal/core/modules/system/lib/Drupal/system/Tests/Routing/MockRouteProvider.php
Implements \Symfony\Cmf\Component\Routing\RouteProviderInterface::getRoutesByName().
RouteProvider::getRoutesByNames in drupal/core/lib/Drupal/Core/Routing/RouteProvider.php
Find many routes by their names using the provided list of names.

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/RouteProviderInterface.php, line 72

Class

RouteProviderInterface
Interface for the route provider the DynamicRouter is using.

Namespace

Symfony\Cmf\Component\Routing

Code

public function getRoutesByNames($names, $parameters = array());