function DatabaseStorage::decode
Implements Drupal\Core\Config\StorageInterface::decode().
Parameters
string $raw: The raw configuration data string to decode.
Return value
array The decoded configuration data as an associative array.
Throws
\ErrorException The unserialize() call will trigger E_NOTICE if the string cannot be unserialized.
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 275 
Class
- DatabaseStorage
- Defines the Database storage.
Namespace
Drupal\Core\ConfigCode
public function decode($raw) {
  $data = @unserialize($raw);
  return is_array($data) ? $data : FALSE;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
