public function SourceStorage::read in Configuration installer 8
Reads configuration data from the storage.
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 StorageInterface::read
1 call to SourceStorage::read()
- SourceStorage::readMultiple in src/
Storage/ SourceStorage.php - Reads configuration data from the storage.
File
- src/
Storage/ SourceStorage.php, line 51
Class
- SourceStorage
- Wraps the sync storage so the config_installer can make modifications.
Namespace
Drupal\config_installer\StorageCode
public function read($name) {
$data = $this->baseStorage
->read($name);
if ($name === 'core.extension' && isset($data['module'])) {
// Remove any profiles from the list. These will be installed later.
// @see config_installer_config_import_profile()
$data['module'] = array_diff_key($data['module'], $this->profiles);
}
return $data;
}