public function Route::hasOption

Checks if an option has been set

Parameters

string $name An option name:

Return value

Boolean true if the option is set, false otherwise

File

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

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