public function LanguageConfigFactoryOverride::loadOverrides in Drupal 8
Same name and namespace in other branches
- 9 core/modules/language/src/Config/LanguageConfigFactoryOverride.php \Drupal\language\Config\LanguageConfigFactoryOverride::loadOverrides()
- 10 core/modules/language/src/Config/LanguageConfigFactoryOverride.php \Drupal\language\Config\LanguageConfigFactoryOverride::loadOverrides()
Returns config overrides.
Parameters
array $names: A list of configuration names that are being loaded.
Return value
array An array keyed by configuration name of override data. Override data contains a nested array structure of overrides.
Overrides ConfigFactoryOverrideInterface::loadOverrides
File
- core/
modules/ language/ src/ Config/ LanguageConfigFactoryOverride.php, line 86
Class
- LanguageConfigFactoryOverride
- Provides language overrides for the configuration factory.
Namespace
Drupal\language\ConfigCode
public function loadOverrides($names) {
if ($this->language) {
$storage = $this
->getStorage($this->language
->getId());
return $storage
->readMultiple($names);
}
return [];
}