public function StorageReplaceDataWrapper::readMultiple in Drupal 10
Same name and namespace in other branches
- 8 core/modules/config/src/StorageReplaceDataWrapper.php \Drupal\config\StorageReplaceDataWrapper::readMultiple()
- 9 core/modules/config/src/StorageReplaceDataWrapper.php \Drupal\config\StorageReplaceDataWrapper::readMultiple()
File
- core/
modules/ config/ src/ StorageReplaceDataWrapper.php, line 70
Class
- StorageReplaceDataWrapper
- Wraps a configuration storage to allow replacing specific configuration data.
Namespace
Drupal\configCode
public function readMultiple(array $names) {
$data = $this->storage
->readMultiple($names);
foreach ($names as $name) {
if (isset($this->replacementData[$this->collection][$name])) {
$data[$name] = $this->replacementData[$this->collection][$name];
}
}
return $data;
}