public function 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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!DatabaseStorage.php/function/DatabaseStorage::decode/8.1.x