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

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

File

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

Class

Container
Container is a dependency injection container.

Namespace

Symfony\Component\DependencyInjection

Code

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