You are here

function config_sync_refresh_snapshot in Configuration Synchronizer 8

Refreshes the configuration snapshot.

Parameters

\Drupal\Core\Extension\Extension[] $extensions: The list of extensions to refresh. If omitted the entire snapshot will be refreshed.

2 calls to config_sync_refresh_snapshot()
config_sync_modules_installed in ./config_sync.module
Implements hook_modules_installed().
config_sync_themes_installed in ./config_sync.module
Implements hook_themes_installed().

File

./config_sync.module, line 80
Manage synchronizing configuration from extensions.

Code

function config_sync_refresh_snapshot(array $extensions = []) {
  \Drupal::service('config_sync.snapshotter')
    ->refreshSnapshot($extensions);
  \Drupal::service('config_sync.merged_storage')
    ->deleteAll();
}