public function ParameterBag::has

Same name in this branch

Returns true if a parameter name is defined.

@api

Parameters

string $name The parameter name:

Return value

Boolean true if the parameter name is defined, false otherwise

Overrides ParameterBagInterface::has

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php, line 136

Class

ParameterBag
Holds parameters.

Namespace

Symfony\Component\DependencyInjection\ParameterBag

Code

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