public function ContainerBuilder::prependExtensionConfig

Prepends a config array to the configs of the given extension.

Parameters

string $name The name of the extension:

array $config The config to set:

File

drupal/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php, line 586

Class

ContainerBuilder
ContainerBuilder is a DI container that provides an API to easily describe services.

Namespace

Symfony\Component\DependencyInjection

Code

public function prependExtensionConfig($name, array $config) {
  if (!isset($this->extensionConfigs[$name])) {
    $this->extensionConfigs[$name] = array();
  }
  array_unshift($this->extensionConfigs[$name], $config);
}