function RecipeOverrideConfigStorage::readMultiple

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Recipe/RecipeOverrideConfigStorage.php \Drupal\Core\Recipe\RecipeOverrideConfigStorage::readMultiple()

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\Recipe

Code

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.