You are here

public function ConfigSnapshotSubscriber::onConfigImporterImport in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber::onConfigImporterImport()

Creates a config snapshot.

Parameters

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

File

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

Class

ConfigSnapshotSubscriber
Create a snapshot when config is imported.

Namespace

Drupal\Core\EventSubscriber

Code

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