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); }
Please login to continue.