public function Route::addOptions

Adds options.

This method implements a fluent interface.

Parameters

array $options The options:

Return value

Route The current Route instance

1 call to Route::addOptions()
Route::setOptions in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Route.php
Sets the options.

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Route.php, line 318

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function addOptions(array $options) {
  foreach ($options as $name => $option) {
    $this->options[$name] = $option;
  }
  $this->compiled = null;
  return $this;
}