public function RouteCollection::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:

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/RouteCollection.php, line 113

Class

RouteCollection
A RouteCollection represents a set of Route instances.

Namespace

Symfony\Component\Routing

Code

public function remove($name) {
  foreach ((array) $name as $n) {
    unset($this->routes[$n]);
  }
}