public function Container::hasParameter

Checks if a parameter exists.

@api

Parameters

string $name The parameter name:

Return value

Boolean The presence of parameter in container

Overrides ContainerInterface::hasParameter

2 methods override Container::hasParameter()
ProjectServiceContainer::hasParameter in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services10.php
Checks if a parameter exists.
ProjectServiceContainer::hasParameter in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php
Checks if a parameter exists.

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Container.php, line 165

Class

Container
Container is a dependency injection container.

Namespace

Symfony\Component\DependencyInjection

Code

public function hasParameter($name) {
  return $this->parameterBag
    ->has($name);
}