public function JsonFileStorage::decode in Tome 8
Decodes configuration data from the storage-specific format.
This is a publicly accessible static method to allow for alternative usages in data conversion scripts and also tests.
Parameters
string $raw: The raw configuration data string to decode.
Return value
array The decoded configuration data as an associative array.
Overrides FileStorage::decode
File
- modules/
tome_sync/ src/ JsonFileStorage.php, line 31
Class
- JsonFileStorage
- Defines the JSON file storage.
Namespace
Drupal\tome_syncCode
public function decode($data) {
return \Drupal::service('serializer')
->decode($data, 'json');
}