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

Breadcrumb

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

function RemoveBuildParametersPass::process

Overrides CompilerPassInterface::process

File

vendor/symfony/dependency-injection/Compiler/RemoveBuildParametersPass.php, line 23

Class

RemoveBuildParametersPass

Namespace

Symfony\Component\DependencyInjection\Compiler

Code

public function process(ContainerBuilder $container) : void {
    $parameterBag = $container->getParameterBag();
    $this->removedParameters = [];
    foreach ($parameterBag->all() as $name => $value) {
        if ('.' === ($name[0] ?? '')) {
            $this->removedParameters[$name] = $value;
            $parameterBag->remove($name);
            $container->log($this, \sprintf('Removing build parameter "%s".', $name));
        }
    }
}
RSS feed
Powered by Drupal