function RecipeOverrideConfigStorage::readMultiple
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Recipe/RecipeOverrideConfigStorage.php \Drupal\Core\Recipe\RecipeOverrideConfigStorage::readMultiple()
Reads configuration data from the storage.
Parameters
array $names: List of names of the configuration objects to load.
Return value
array A list of the configuration data stored for the configuration object name that could be loaded for the passed list of names.
Overrides StorageInterface::readMultiple
File
-
core/
lib/ Drupal/ Core/ Recipe/ RecipeOverrideConfigStorage.php, line 53
Class
- RecipeOverrideConfigStorage
- Wraps a config storage to allow recipe provided configuration to override it.
Namespace
Drupal\Core\RecipeCode
public function readMultiple(array $names) : array {
$data = $this->wrappedStorage
->readMultiple($names);
foreach ($data as $name => $value) {
if ($this->recipeStorage
->exists($name)) {
$data[$name] = $this->recipeStorage
->read($name);
}
}
return $data;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.