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