public function Route::hasDefault

Checks if a default value is set for the given variable.

Parameters

string $name A variable name:

Return value

Boolean true if the default value is set, false otherwise

File

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

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function hasDefault($name) {
  return array_key_exists($name, $this->defaults);
}