You are here

public function Route::setDefault in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Route.php \Symfony\Component\Routing\Route::setDefault()

Sets a default value.

Parameters

string $name A variable name:

mixed $default The default value:

Return value

Route The current Route instance

File

vendor/symfony/routing/Route.php, line 481

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function setDefault($name, $default) {
  $this->defaults[$name] = $default;
  $this->compiled = null;
  return $this;
}