You are here

public function ConfigSyncSnapshotter::createSnapshot in Configuration Synchronizer 8.2

Takes a snapshot of configuration from all installed modules and themes.

Overrides ConfigSyncSnapshotterInterface::createSnapshot

File

src/ConfigSyncSnapshotter.php, line 171

Class

ConfigSyncSnapshotter
The ConfigSyncSnapshotter provides helper functions for taking snapshots of extension-provided configuration.

Namespace

Drupal\config_sync

Code

public function createSnapshot() {
  $extension_names = $this
    ->getSyncExtensions();
  foreach ($extension_names as $type => $names) {
    if ($type === 'module') {
      $names = $this
        ->listModulesInDependencyOrder($names);
    }
    $this
      ->refreshExtensionSnapshot($type, $names, ConfigSyncSnapshotterInterface::SNAPSHOT_MODE_INSTALL);
  }
}