You are here

interface SyncConfigProviderInterface in Configuration Synchronizer 8.2

Class for invoking configuration providers for snapshotting.

Hierarchy

Expanded class hierarchy of SyncConfigProviderInterface

All classes that implement SyncConfigProviderInterface

File

src/Plugin/SyncConfigProviderInterface.php, line 11

Namespace

Drupal\config_sync\Plugin
View source
interface SyncConfigProviderInterface extends ConfigProviderInterface {

  /**
   * Alters a configuration snapshot.
   *
   * Not intended to be called an install time, this method instead facilitates
   * determining what configuration updates are available.
   *
   * Implementing plugins should write configuration as appropriate to the
   * $snapshot_storage storage.
   *
   * @param \Drupal\Core\Config\StorageInterface $snapshot_storage
   *   The snapshot configuration storage.
   * @param \Drupal\Core\Extension\Extension[] $extensions
   *   (Optional) An associative array of Extension objects, keyed by extension
   *   name. If provided, data loaded will be limited to these extensions.
   *
   * @see \Drupal\config_provider\Plugin\ConfigProviderInterface\addInstallableConfig()
   */
  public function alterConfigSnapshot(StorageInterface $snapshot_storage, array $extensions = []);

}

Members