public function ConfigSplitCliService::export in Configuration Split 8
Export the configuration.
This is the quintessential config export.
Parameters
\Drupal\Core\Config\StorageInterface $storage: The config storage to export to.
\Drupal\Core\Config\StorageInterface|null $active: The config storage to export from (optional).
1 call to ConfigSplitCliService::export()
- ConfigSplitCliService::ioExport in src/
ConfigSplitCliService.php - Handle the export interaction.
File
- src/
ConfigSplitCliService.php, line 298
Class
- ConfigSplitCliService
- The CLI service class for interoperability.
Namespace
Drupal\config_splitCode
public function export(StorageInterface $storage, StorageInterface $active = NULL) {
if (!isset($active)) {
// Use the active storage.
$active = $this->activeStorage;
}
// Export by using the trait from core.
static::replaceStorageContents($active, $storage);
}