ConfigSnapshotSubscriber::onConfigImporterImport

public ConfigSnapshotSubscriber::onConfigImporterImport(ConfigImporterEvent $event)

Creates a config snapshot.

Parameters

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

File

core/lib/Drupal/Core/EventSubscriber/ConfigSnapshotSubscriber.php, line 57

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);
}
doc_Drupal
2016-10-29 08:54:29
Comments
Leave a Comment

Please login to continue.