function RouteProvider::getRouteByName
Find the route using the provided route name.
Parameters
string $name: The route name to fetch
Return value
\Symfony\Component\Routing\Route The Symfony route object.
Overrides RouteProviderInterface::getRouteByName
File
-
core/
tests/ Drupal/ KernelTests/ RouteProvider.php, line 49
Class
- RouteProvider
- Rebuilds the router when the provider is instantiated.
Namespace
Drupal\KernelTestsCode
public function getRouteByName($name) {
return $this->lazyLoadItself()
->getRouteByName($name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.