public function Route::setOptions

Same name in this branch

Sets the options.

This method implements a fluent interface.

Parameters

array $options The options:

Return value

Route The current Route instance

1 call to Route::setOptions()
Route::__construct in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Route.php
Constructor.

File

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

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function setOptions(array $options) {
  $this->options = array(
    'compiler_class' => 'Symfony\\Component\\Routing\\RouteCompiler',
  );
  return $this
    ->addOptions($options);
}