/**
* {@inheritdoc}
*/
public function installDefaultConfig($type,
$name) { $extension_path =
$this->extensionPathResolver->
getPath($type,
$name);
// Refresh the schema cache if the extension provides configuration schema
// or is a theme.
if (is_dir($extension_path . '/' . InstallStorage::CONFIG_SCHEMA_DIRECTORY
) ||
$type == 'theme'
) { $this->typedConfig->
clearCachedDefinitions();
} $default_install_path =
$this->
getDefaultConfigDirectory($type,
$name);
if (is_dir($default_install_path)) { if (!
$this->
isSyncing()) { $storage =
new FileStorage($default_install_path, StorageInterface::DEFAULT_COLLECTION
);
$prefix = '';
} else { // The configuration importer sets the source storage on the config
// installer. The configuration importer handles all of the
// configuration entity imports. We only need to ensure that simple
// configuration is created when the extension is installed.
$storage =
$this->
getSourceStorage();