public function Container::getParameter

Gets a parameter.

@api

Parameters

string $name The parameter name:

Return value

mixed The parameter value

Throws

InvalidArgumentException if the parameter is not defined

Overrides ContainerInterface::getParameter

4 calls to Container::getParameter()
ProjectServiceContainer::getBarService in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9.php
Gets the 'bar' service.
ProjectServiceContainer::getFooBarService in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9.php
Gets the 'foo_bar' service.
ProjectServiceContainer::getFooService in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9.php
Gets the 'foo' service.
ProjectServiceContainer::getFoo_BazService in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9.php
Gets the 'foo.baz' service.
2 methods override Container::getParameter()
ProjectServiceContainer::getParameter in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services10.php
Gets a parameter.
ProjectServiceContainer::getParameter in drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php
Gets a parameter.

File

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

Class

Container
Container is a dependency injection container.

Namespace

Symfony\Component\DependencyInjection

Code

public function getParameter($name) {
  return $this->parameterBag
    ->get($name);
}