class YamlParserProxy in Drupal 10
Same name in this branch
- 10 core/tests/Drupal/Tests/Core/Serialization/YamlTest.php \Drupal\Tests\Core\Serialization\YamlParserProxy
- 10 core/tests/Drupal/Tests/Component/Serialization/YamlTest.php \Drupal\Tests\Component\Serialization\YamlParserProxy
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Serialization/YamlTest.php \Drupal\Tests\Component\Serialization\YamlParserProxy
- 9 core/tests/Drupal/Tests/Component/Serialization/YamlTest.php \Drupal\Tests\Component\Serialization\YamlParserProxy
Hierarchy
- class \Drupal\Tests\Component\Serialization\YamlParserProxy implements SerializationInterface
Expanded class hierarchy of YamlParserProxy
File
- core/
tests/ Drupal/ Tests/ Component/ Serialization/ YamlTest.php, line 148
Namespace
Drupal\Tests\Component\SerializationView source
class YamlParserProxy implements SerializationInterface {
/**
* @var \Drupal\Component\Serialization\SerializationInterface
*/
protected static $mock;
public static function setMock($mock) {
static::$mock = $mock;
}
public static function encode($data) {
return static::$mock
->encode($data);
}
public static function decode($raw) {
return static::$mock
->decode($raw);
}
public static function getFileExtension() {
return static::$mock
->getFileExtension();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
YamlParserProxy:: |
protected static | property | ||
YamlParserProxy:: |
public static | function |
Decodes data from the serialization format. Overrides SerializationInterface:: |
|
YamlParserProxy:: |
public static | function |
Encodes data into the serialization format. Overrides SerializationInterface:: |
|
YamlParserProxy:: |
public static | function |
Gets the file extension for this serialization format. Overrides SerializationInterface:: |
|
YamlParserProxy:: |
public static | function |