public function ChainRouteCollection::get in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/ChainRouteCollection.php \Symfony\Cmf\Component\Routing\ChainRouteCollection::get()
Gets a route by name.
Parameters
string $name The route name:
Return value
Route|null A Route instance or null when not found
Overrides RouteCollection::get
File
- vendor/
symfony-cmf/ routing/ ChainRouteCollection.php, line 100
Class
Namespace
Symfony\Cmf\Component\RoutingCode
public function get($name) {
foreach ($this->routeCollections as $routeCollection) {
$route = $routeCollection
->get($name);
if (null !== $route) {
return $route;
}
}
return null;
}