function StorageReplaceDataWrapper::readMultiple

Same name in other branches
  1. 9 core/modules/config/src/StorageReplaceDataWrapper.php \Drupal\config\StorageReplaceDataWrapper::readMultiple()
  2. 10 core/modules/config/src/StorageReplaceDataWrapper.php \Drupal\config\StorageReplaceDataWrapper::readMultiple()
  3. 11.x core/modules/config/src/StorageReplaceDataWrapper.php \Drupal\config\StorageReplaceDataWrapper::readMultiple()

Overrides StorageInterface::readMultiple

File

core/modules/config/src/StorageReplaceDataWrapper.php, line 70

Class

StorageReplaceDataWrapper
Wraps a configuration storage to allow replacing specific configuration data.

Namespace

Drupal\config

Code

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;
}

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