Gets a route by name.
Parameters
string $name The route name:
Return value
Route|null A Route instance or null when not found
File
- drupal/core/vendor/symfony/routing/Symfony/Component/Routing/RouteCollection.php, line 103
Class
- RouteCollection
- A RouteCollection represents a set of Route instances.
Namespace
Symfony\Component\Routing
Code
public function get($name) {
return isset($this->routes[$name]) ? $this->routes[$name] : null;
}