You are here

public static function PhpSerialize::decode in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Serialization/PhpSerialize.php \Drupal\Component\Serialization\PhpSerialize::decode()

Decodes data from the serialization format.

Parameters

string $raw: The raw data string to decode.

Return value

mixed The decoded data.

Throws

\Drupal\Component\Serialization\Exception\InvalidDataTypeException

Overrides SerializationInterface::decode

File

core/lib/Drupal/Component/Serialization/PhpSerialize.php, line 20

Class

PhpSerialize
Default serialization for serialized PHP.

Namespace

Drupal\Component\Serialization

Code

public static function decode($raw) {
  return unserialize($raw);
}