You are here

public function ConfigManager::createSnapshot in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/ConfigManager.php \Drupal\Core\Config\ConfigManager::createSnapshot()

Creates a configuration snapshot following a successful import.

Parameters

\Drupal\Core\Config\StorageInterface $source_storage: The storage to synchronize configuration from.

\Drupal\Core\Config\StorageInterface $snapshot_storage: The storage to synchronize configuration to.

Overrides ConfigManagerInterface::createSnapshot

File

core/lib/Drupal/Core/Config/ConfigManager.php, line 197

Class

ConfigManager
The ConfigManager provides helper functions for the configuration system.

Namespace

Drupal\Core\Config

Code

public function createSnapshot(StorageInterface $source_storage, StorageInterface $snapshot_storage) {
  self::replaceStorageContents($source_storage, $snapshot_storage);
}