You are here

public static function YamlParserProxy::decode in Drupal 8

Same name in this branch
  1. 8 core/tests/Drupal/Tests/Core/Serialization/YamlTest.php \Drupal\Tests\Core\Serialization\YamlParserProxy::decode()
  2. 8 core/tests/Drupal/Tests/Component/Serialization/YamlTest.php \Drupal\Tests\Component\Serialization\YamlParserProxy::decode()
Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Serialization/YamlTest.php \Drupal\Tests\Core\Serialization\YamlParserProxy::decode()
  2. 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

YamlParserProxy

Namespace

Drupal\Tests\Core\Serialization

Code

public static function decode($raw) {
  return static::$mock
    ->decode($raw);
}