public function ConfigModuleOverridesEvent::__construct in Drupal 9
Same name and namespace in other branches
- 8 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\ConfigCode
public function __construct(array $names, LanguageInterface $language = NULL) {
$this->names = $names;
$this->language = $language;
$this->overrides = [];
}