You are here

public function Route::hasDefault in Zircon Profile 8

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

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

Parameters

string $name A variable name:

Return value

bool true if the default value is set, false otherwise

File

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

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);
}