function RecipeExtensionConfigStorage::read
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Recipe/RecipeExtensionConfigStorage.php \Drupal\Core\Recipe\RecipeExtensionConfigStorage::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/ RecipeExtensionConfigStorage.php, line 51
Class
- RecipeExtensionConfigStorage
- Allows the recipe to select configuration from the module.
Namespace
Drupal\Core\RecipeCode
public function read($name) : array|bool {
if (!empty($this->configNames) && !in_array($name, $this->configNames, TRUE)) {
return FALSE;
}
return $this->storage
->read($name);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.