function RecipeOverrideConfigStorage::read

Same name in other branches
  1. 10 core/lib/Drupal/Core/Recipe/RecipeOverrideConfigStorage.php \Drupal\Core\Recipe\RecipeOverrideConfigStorage::read()

Overrides StorageInterface::read

File

core/lib/Drupal/Core/Recipe/RecipeOverrideConfigStorage.php, line 43

Class

RecipeOverrideConfigStorage
Wraps a config storage to allow recipe provided configuration to override it.

Namespace

Drupal\Core\Recipe

Code

public function read($name) : array|bool {
    if ($this->wrappedStorage
        ->exists($name) && $this->recipeStorage
        ->exists($name)) {
        return $this->recipeStorage
            ->read($name);
    }
    return $this->wrappedStorage
        ->read($name);
}

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