function DatabaseStorage::decode
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 StorageInterface::decode
2 calls to DatabaseStorage::decode()
- DatabaseStorage::read in core/
lib/ Drupal/ Core/ Config/ DatabaseStorage.php - Reads configuration data from the storage.
- DatabaseStorage::readMultiple in core/
lib/ Drupal/ Core/ Config/ DatabaseStorage.php - Reads configuration data from the storage.
File
-
core/
lib/ Drupal/ Core/ Config/ DatabaseStorage.php, line 270
Class
- DatabaseStorage
- Defines the Database storage.
Namespace
Drupal\Core\ConfigCode
public function decode($raw) {
$data = @unserialize($raw, [
'allowed_classes' => FALSE,
]);
return is_array($data) ? $data : FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.