You are here

public function ConfigFactory::addOverride in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/ConfigFactory.php \Drupal\Core\Config\ConfigFactory::addOverride()

Adds config factory override services.

Parameters

\Drupal\Core\Config\ConfigFactoryOverrideInterface $config_factory_override: The config factory override service to add. It is added at the end of the priority list (lower priority relative to existing ones).

Overrides ConfigFactoryInterface::addOverride

File

core/lib/Drupal/Core/Config/ConfigFactory.php, line 394

Class

ConfigFactory
Defines the configuration object factory.

Namespace

Drupal\Core\Config

Code

public function addOverride(ConfigFactoryOverrideInterface $config_factory_override) {
  $this->configFactoryOverrides[] = $config_factory_override;
}