public function RouteCollection::addOptions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/RouteCollection.php \Symfony\Component\Routing\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:
1 method overrides RouteCollection::addOptions()
- ChainRouteCollection::addOptions in vendor/
symfony-cmf/ routing/ ChainRouteCollection.php - Adds options to all routes.
File
- vendor/
symfony/ routing/ RouteCollection.php, line 225
Class
- RouteCollection
- A RouteCollection represents a set of Route instances.
Namespace
Symfony\Component\RoutingCode
public function addOptions(array $options) {
if ($options) {
foreach ($this->routes as $route) {
$route
->addOptions($options);
}
}
}