public function ChainRouteCollection::remove in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/ChainRouteCollection.php \Symfony\Cmf\Component\Routing\ChainRouteCollection::remove()
Removes a route or an array of routes by name from the collection
Parameters
string|array $name The route name or an array of route names:
Overrides RouteCollection::remove
File
- vendor/
symfony-cmf/ routing/ ChainRouteCollection.php, line 117
Class
Namespace
Symfony\Cmf\Component\RoutingCode
public function remove($name) {
foreach ($this->routeCollections as $routeCollection) {
$route = $routeCollection
->get($name);
if (null !== $route) {
$routeCollection
->remove($name);
}
}
}