public function Route::getDefault

Gets a default value.

Parameters

string $name A variable name:

Return value

mixed The default value or null when not given

File

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

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function getDefault($name) {
  return isset($this->defaults[$name]) ? $this->defaults[$name] : null;
}