public function Route::setDefaults

Same name in this branch

Sets the defaults.

This method implements a fluent interface.

Parameters

array $defaults The defaults:

Return value

Route The current Route instance

1 call to Route::setDefaults()

File

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

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function setDefaults(array $defaults) {
  $this->defaults = array();
  return $this
    ->addDefaults($defaults);
}