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

File

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

Class

RouteCollection
A RouteCollection represents a set of Route instances.

Namespace

Symfony\Component\Routing

Code

public function addOptions(array $options) {
  if ($options) {
    foreach ($this->routes as $route) {
      $route
        ->addOptions($options);
    }
  }
}