function RecipeOverrideConfigStorage::read
Reads configuration data from the storage.
Parameters
string $name: The name of a configuration object to load.
Return value
array|false The configuration data stored for the configuration object name. If no configuration data exists for the given name, FALSE is returned.
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\RecipeCode
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.