You are here

public function ConfigSnapshotStorage::__construct in Config Snapshot 8

Constructs a new ConfigSnapshotStorage.

Parameters

string $snapshot_set: The snapshot set.

string $extension_type: The extension type.

string $extension_name: The extension name.

string $collection: (optional) The collection to store configuration in. Defaults to the default collection.

\Drupal\config_snapshot\Entity\ConfigSnapshot $config_snapshot: (optional) The configuration snapshot.

File

src/ConfigSnapshotStorage.php, line 66

Class

ConfigSnapshotStorage
Provides a configuration storage saved as simple configuration.

Namespace

Drupal\config_snapshot

Code

public function __construct($snapshot_set, $extension_type, $extension_name, $collection = StorageInterface::DEFAULT_COLLECTION, ConfigSnapshot $config_snapshot = NULL) {
  $this->snapshotSet = $snapshot_set;
  $this->extensionType = $extension_type;
  $this->extensionName = $extension_name;
  $this->collection = $collection;
  $this
    ->setConfigSnapshot($config_snapshot);
}