You are here

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

Adds options to all routes.

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

Parameters

array $options An array of options:

Overrides RouteCollection::addOptions

File

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

Class

ChainRouteCollection

Namespace

Symfony\Cmf\Component\Routing

Code

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