You are here

public function ConfigFactory::addOverride in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Config/ConfigFactory.php \Drupal\Core\Config\ConfigFactory::addOverride()
  2. 10 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;
}