You are here

public function SourceStorage::encode in Configuration installer 8

Encodes configuration data into the storage-specific format.

This is a publicly accessible static method to allow for alternative usages in data conversion scripts and also tests.

Parameters

array $data: The configuration data to encode.

Return value

string The encoded configuration data.

Overrides StorageInterface::encode

File

src/Storage/SourceStorage.php, line 98

Class

SourceStorage
Wraps the sync storage so the config_installer can make modifications.

Namespace

Drupal\config_installer\Storage

Code

public function encode($data) {
  return $this->baseStorage
    ->encode($data);
}