public function ConfigSnapshotSubscriber::onConfigImporterImport

Creates a config snapshot.

Parameters

\Drupal\Core\Config\ConfigImporterEvent $event: The Event to process.

File

drupal/core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php, line 53
Contains \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber.

Class

ConfigSnapshotSubscriber
Create a snapshot when config is imported.

Namespace

Drupal\Core\EventSubscriber

Code

public function onConfigImporterImport(ConfigImporterEvent $event) {
  config_import_create_snapshot($this->sourceStorage, $this->snapshotStorage);
}