Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Container.php

function Container::getParameter

Same name in this branch
  1. 11.1.x core/lib/Drupal/Component/DependencyInjection/Container.php \Drupal\Component\DependencyInjection\Container::getParameter()

Gets a parameter.

Throws

ParameterNotFoundException if the parameter is not defined

Overrides ContainerInterface::getParameter

1 call to Container::getParameter()
ContainerBuilder::doResolveServices in vendor/symfony/dependency-injection/ContainerBuilder.php

File

vendor/symfony/dependency-injection/Container.php, line 117

Class

Container
Container is a dependency injection container.

Namespace

Symfony\Component\DependencyInjection

Code

public function getParameter(string $name) : array|bool|string|int|float|\UnitEnum|null {
    return $this->parameterBag
        ->get($name);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal