public function RouteCollection::get in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/RouteCollection.php \Symfony\Component\Routing\RouteCollection::get()
Gets a route by name.
Parameters
string $name The route name:
Return value
Route|null A Route instance or null when not found
2 methods override RouteCollection::get()
- ChainRouteCollection::get in vendor/
symfony-cmf/ routing/ ChainRouteCollection.php - Gets a route by name.
- LazyRouteCollection::get in vendor/
symfony-cmf/ routing/ LazyRouteCollection.php - Gets a route by name.
File
- vendor/
symfony/ routing/ RouteCollection.php, line 99
Class
- RouteCollection
- A RouteCollection represents a set of Route instances.
Namespace
Symfony\Component\RoutingCode
public function get($name) {
return isset($this->routes[$name]) ? $this->routes[$name] : null;
}