RouteProviderLazyBuilder::getRouteByName

public RouteProviderLazyBuilder::getRouteByName($name)

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

Overrides RouteProviderInterface::getRouteByName

File

core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php, line 71

Class

RouteProviderLazyBuilder
A Route Provider front-end for all Drupal-stored routes.

Namespace

Drupal\Core\Routing

Code

public function getRouteByName($name) {
  return $this->getRouteProvider()->getRouteByName($name);
}
doc_Drupal
2016-10-29 09:39:21
Comments
Leave a Comment

Please login to continue.