public function ParameterBag::has

Same name in this branch

Returns true if the parameter is defined.

@api

Parameters

string $key The key:

Return value

Boolean true if the parameter exists, false otherwise

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/ParameterBag.php, line 174

Class

ParameterBag
ParameterBag is a container for key/value pairs.

Namespace

Symfony\Component\HttpFoundation

Code

public function has($key) {
  return array_key_exists($key, $this->parameters);
}