Creates a configuration snapshot following a successful import.
Drupal\Core\Config\StorageInterface $source_storage: The storage to synchronize configuration from.
Drupal\Core\Config\StorageInterface $snapshot_storage: The storage to synchronize configuration to.
function config_import_create_snapshot(StorageInterface $source_storage, StorageInterface $snapshot_storage) {
$snapshot_storage
->deleteAll();
foreach ($source_storage
->listAll() as $name) {
$snapshot_storage
->write($name, $source_storage
->read($name));
}
}