You are here

ConfigSyncSnapshotterInterface.php in Configuration Synchronizer 8

Same filename and directory in other branches
  1. 8.2 src/ConfigSyncSnapshotterInterface.php

Namespace

Drupal\config_sync

File

src/ConfigSyncSnapshotterInterface.php
View source
<?php

namespace Drupal\config_sync;


/**
 * The ConfigSyncSnapshotter provides helper functions for taking snapshots of
 * extension-provided configuration.
 */
interface ConfigSyncSnapshotterInterface {

  /**
   * Takes a snapshot of configuration from modules and themes.
   *
   * Only items not already in the snapshot storage are added.
   *
   * @param \Drupal\Core\Extension\Extension[] $extensions
   *   Optional list of extensions for which to refresh the snapshot. If
   *   omitted, the entire snapshot will be refreshed.
   */
  public function refreshSnapshot(array $extensions = []);

  /**
   * Deletes all records from the snapshot.
   */
  public function deleteSnapshot();

}

Interfaces

Namesort descending Description
ConfigSyncSnapshotterInterface The ConfigSyncSnapshotter provides helper functions for taking snapshots of extension-provided configuration.