public function MongodbConfigStorage::encode in MongoDB 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/
MongodbConfigStorage.php, line 137 - Definition of Drupal\mongodb\Config\MongoStorage.
Class
Namespace
Drupal\mongodbCode
public function encode($data) {
// WTF is this part of general StorageInterface if it is only needed for
// file-based backends?
return $data;
}