You are here

public function Route::hasOption in Zircon Profile 8

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

Checks if an option has been set.

Parameters

string $name An option name:

Return value

bool true if the option is set, false otherwise

File

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

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function hasOption($name) {
  return array_key_exists($name, $this->options);
}