public static function YamlParserProxy::decode in Drupal 9
Same name in this branch
- 9 core/tests/Drupal/Tests/Core/Serialization/YamlTest.php \Drupal\Tests\Core\Serialization\YamlParserProxy::decode()
- 9 core/tests/Drupal/Tests/Component/Serialization/YamlTest.php \Drupal\Tests\Component\Serialization\YamlParserProxy::decode()
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Serialization/YamlTest.php \Drupal\Tests\Component\Serialization\YamlParserProxy::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/
tests/ Drupal/ Tests/ Component/ Serialization/ YamlTest.php, line 163
Class
Namespace
Drupal\Tests\Component\SerializationCode
public static function decode($raw) {
return static::$mock
->decode($raw);
}