You are here

public function ChainRouteCollection::addDefaults 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::addDefaults()

Adds defaults to all routes.

An existing default value under the same name in a route will be overridden.

Parameters

array $defaults An array of default values:

Overrides RouteCollection::addDefaults

File

vendor/symfony-cmf/routing/ChainRouteCollection.php, line 175

Class

ChainRouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

public function addDefaults(array $defaults) {
  $this
    ->createInternalCollection();
  foreach ($this->routeCollections as $routeCollection) {
    $routeCollection
      ->addDefaults($defaults);
  }
}