public static function SerializationInterface::decode in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Serialization/SerializationInterface.php \Drupal\Component\Serialization\SerializationInterface::decode()
- 9 core/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.
Throws
\Drupal\Component\Serialization\Exception\InvalidDataTypeException
3 methods override SerializationInterface::decode()
- Yaml::decode in core/
lib/ Drupal/ Component/ Serialization/ Yaml.php - Decodes data from the serialization format.
- YamlParserProxy::decode in core/
tests/ Drupal/ Tests/ Core/ Serialization/ YamlTest.php - Decodes data from the serialization format.
- YamlParserProxy::decode in core/
tests/ Drupal/ Tests/ Component/ Serialization/ YamlTest.php - Decodes data from the serialization format.
File
- core/
lib/ Drupal/ Component/ Serialization/ SerializationInterface.php, line 34
Class
- SerializationInterface
- Defines an interface for serialization formats.
Namespace
Drupal\Component\SerializationCode
public static function decode($raw);