public function ReadOnlyStorage::encode in Config Filter 8.2
Same name and namespace in other branches
- 8 src/Config/ReadOnlyStorage.php \Drupal\config_filter\Config\ReadOnlyStorage::encode()
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/ ReadOnlyStorage.php, line 79
Class
- ReadOnlyStorage
- Class ReadOnlyStorage.
Namespace
Drupal\config_filter\ConfigCode
public function encode($data) {
return $this->storage
->encode($data);
}