You are here

public function RouteProviderInterface::getRouteByName in Zircon Profile 8

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

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

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

File

vendor/symfony-cmf/routing/RouteProviderInterface.php, line 61

Class

RouteProviderInterface
Interface for the route provider the DynamicRouter is using.

Namespace

Symfony\Cmf\Component\Routing

Code

public function getRouteByName($name);