public function RouteProviderInterface::getRouteByName

Find the route using the provided route name (and parameters)

Parameters

string $name the route name to fetch:

array $parameters the parameters as they are passed to the: UrlGeneratorInterface::generate call

Return value

\Symfony\Component\Routing\Route

Throws

\Symfony\Component\Routing\Exception\RouteNotFoundException if there is no route with that name in this repository

2 methods override RouteProviderInterface::getRouteByName()
MockRouteProvider::getRouteByName in drupal/core/modules/system/lib/Drupal/system/Tests/Routing/MockRouteProvider.php
Implements \Symfony\Cmf\Component\Routing\RouteProviderInterface::getRouteByName().
RouteProvider::getRouteByName in drupal/core/lib/Drupal/Core/Routing/RouteProvider.php
Find the route using the provided route name (and parameters).

File

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

Class

RouteProviderInterface
Interface for the route provider the DynamicRouter is using.

Namespace

Symfony\Cmf\Component\Routing

Code

public function getRouteByName($name, $parameters = array());