You are here

public function ChainRouteCollection::remove in Zircon Profile 8

Same name and namespace in other branches
  1. 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

ChainRouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function remove($name) {
  foreach ($this->routeCollections as $routeCollection) {
    $route = $routeCollection
      ->get($name);
    if (null !== $route) {
      $routeCollection
        ->remove($name);
    }
  }
}