public function FeaturesExtensionStorages::read in Features 8.4
Same name and namespace in other branches
- 8.3 src/FeaturesExtensionStorages.php \Drupal\features\FeaturesExtensionStorages::read()
Reads configuration data from the storages.
Parameters
string $name: The name of a configuration object to load.
Return value
array|bool The configuration data stored for the configuration object name. If no configuration data exists for the given name, FALSE is returned.
Overrides FeaturesExtensionStoragesInterface::read
File
- src/
FeaturesExtensionStorages.php, line 63
Class
- FeaturesExtensionStorages
- Wraps FeaturesInstallStorage to support multiple configuration directories.
Namespace
Drupal\featuresCode
public function read($name) {
$list = $this
->listAllByDirectory('');
if (isset($list[$name])) {
$directory = $list[$name];
return $this->extensionStorages[$directory]
->read($name);
}
return FALSE;
}