DatabaseStorage::decode

public DatabaseStorage::decode($raw)

Implements Drupal\Core\Config\StorageInterface::decode().

Throws

ErrorException The unserialize() call will trigger E_NOTICE if the string cannot be unserialized.

Overrides StorageInterface::decode

File

core/lib/Drupal/Core/Config/DatabaseStorage.php, line 258

Class

DatabaseStorage
Defines the Database storage.

Namespace

Drupal\Core\Config

Code

public function decode($raw) {
  $data = @unserialize($raw);
  return is_array($data) ? $data : FALSE;
}
doc_Drupal
2016-10-29 08:59:54
Comments
Leave a Comment

Please login to continue.