You are here

public function DatabaseStorage::decode in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Config/DatabaseStorage.php \Drupal\Core\Config\DatabaseStorage::decode()

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

Throws

ErrorException unserialize() triggers 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 262
Contains \Drupal\Core\Config\DatabaseStorage.

Class

DatabaseStorage
Defines the Database storage.

Namespace

Drupal\Core\Config

Code

public function decode($raw) {
  $data = @unserialize($raw);
  return is_array($data) ? $data : FALSE;
}