You are here

class YamlStub in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Serialization/YamlTest.php \Drupal\Tests\Component\Serialization\YamlStub
  2. 9 core/tests/Drupal/Tests/Component/Serialization/YamlTest.php \Drupal\Tests\Component\Serialization\YamlStub

Hierarchy

Expanded class hierarchy of YamlStub

File

core/tests/Drupal/Tests/Component/Serialization/YamlTest.php, line 140

Namespace

Drupal\Tests\Component\Serialization
View source
class YamlStub extends Yaml {
  public static function getSerializer() {
    return '\\Drupal\\Tests\\Component\\Serialization\\YamlParserProxy';
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Yaml::$serializer protected static property The YAML implementation to use.
Yaml::decode public static function Decodes data from the serialization format. Overrides SerializationInterface::decode
Yaml::encode public static function Encodes data into the serialization format. Overrides SerializationInterface::encode
Yaml::getFileExtension public static function Gets the file extension for this serialization format. Overrides SerializationInterface::getFileExtension
YamlStub::getSerializer public static function Determines which implementation to use for parsing YAML. Overrides Yaml::getSerializer