You are here

public static function SerializationInterface::decode in Service Container 7.2

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

Decodes data from the serialization format.

Parameters

string $raw: The raw data string to decode.

Return value

mixed The decoded data.

3 methods override SerializationInterface::decode()
Json::decode in lib/Drupal/Component/Serialization/Json.php
Decodes data from the serialization format.
PhpSerialize::decode in lib/Drupal/Component/Serialization/PhpSerialize.php
Decodes data from the serialization format.
Yaml::decode in lib/Drupal/Component/Serialization/Yaml.php
Decodes data from the serialization format.

File

lib/Drupal/Component/Serialization/SerializationInterface.php, line 35
Contains \Drupal\Component\Serialization\SerializationInterface.

Class

SerializationInterface
Defines an interface for serialization formats.

Namespace

Drupal\Component\Serialization

Code

public static function decode($raw);