public function Route::addDefaults in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Route.php \Symfony\Component\Routing\Route::addDefaults()
Adds defaults.
This method implements a fluent interface.
Parameters
array $defaults The defaults:
Return value
Route The current Route instance
1 call to Route::addDefaults()
- Route::setDefaults in vendor/
symfony/ routing/ Route.php - Sets the defaults.
File
- vendor/
symfony/ routing/ Route.php, line 439
Class
- Route
- A Route describes a route and its parameters.
Namespace
Symfony\Component\RoutingCode
public function addDefaults(array $defaults) {
foreach ($defaults as $name => $default) {
$this->defaults[$name] = $default;
}
$this->compiled = null;
return $this;
}