public function StorageInterface::encode

Encodes configuration data into the storage-specific format.

Parameters

array $data: The configuration data to encode.

Return value

string The encoded configuration data.

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

4 methods override StorageInterface::encode()
CachedStorage::encode in drupal/core/lib/Drupal/Core/Config/CachedStorage.php
Implements Drupal\Core\Config\StorageInterface::encode().
DatabaseStorage::encode in drupal/core/lib/Drupal/Core/Config/DatabaseStorage.php
Implements Drupal\Core\Config\StorageInterface::encode().
FileStorage::encode in drupal/core/lib/Drupal/Core/Config/FileStorage.php
Implements Drupal\Core\Config\StorageInterface::encode().
NullStorage::encode in drupal/core/lib/Drupal/Core/Config/NullStorage.php
Implements Drupal\Core\Config\StorageInterface::encode().

File

drupal/core/lib/Drupal/Core/Config/StorageInterface.php, line 90
Definition of Drupal\Core\Config\StorageInterface.

Class

StorageInterface
Defines an interface for configuration storage controllers.

Namespace

Drupal\Core\Config

Code

public function encode($data);