You are here

public function SplitCollectionStorage::encode in Configuration Split 2.0.x

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/Config/SplitCollectionStorage.php, line 99

Class

SplitCollectionStorage
A config storage that lives in a collection of another config storage.

Namespace

Drupal\config_split\Config

Code

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