function ConfigModuleOverridesEvent::__construct

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/ConfigModuleOverridesEvent.php \Drupal\Core\Config\ConfigModuleOverridesEvent::__construct()
  2. 10 core/lib/Drupal/Core/Config/ConfigModuleOverridesEvent.php \Drupal\Core\Config\ConfigModuleOverridesEvent::__construct()
  3. 11.x core/lib/Drupal/Core/Config/ConfigModuleOverridesEvent.php \Drupal\Core\Config\ConfigModuleOverridesEvent::__construct()

Constructs a configuration overrides event object.

Parameters

array $names: A list of configuration names.

\Drupal\Core\Language\LanguageInterface $language: (optional) The language for this configuration.

File

core/lib/Drupal/Core/Config/ConfigModuleOverridesEvent.php, line 43

Class

ConfigModuleOverridesEvent
Event object to allow configuration to be overridden by modules.

Namespace

Drupal\Core\Config

Code

public function __construct(array $names, LanguageInterface $language = NULL) {
    $this->names = $names;
    $this->language = $language;
    $this->overrides = [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.