public function DatabaseStorage::decode in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Config/DatabaseStorage.php \Drupal\Core\Config\DatabaseStorage::decode()
- 9 core/lib/Drupal/Core/Config/DatabaseStorage.php \Drupal\Core\Config\DatabaseStorage::decode()
Implements Drupal\Core\Config\StorageInterface::decode().
Throws
ErrorException The unserialize() call will trigger E_NOTICE if the string cannot be unserialized.
File
- core/
lib/ Drupal/ Core/ Config/ DatabaseStorage.php, line 262
Class
- DatabaseStorage
- Defines the Database storage.
Namespace
Drupal\Core\ConfigCode
public function decode($raw) {
$data = @unserialize($raw);
return is_array($data) ? $data : FALSE;
}