Provides a YAML serialization implementation.
Proxy implementation that will choose the best library based on availability.
Hierarchy
- class \Drupal\Component\Serialization\Yaml implements SerializationInterface
File
- core/lib/Drupal/Component/Serialization/Yaml.php, line 10
Namespace
Drupal\Component\Serialization
Members
Name | Modifiers | Type | Description |
---|---|---|---|
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 |
Yaml::getSerializer | protected static | function | Determines which implementation to use for parsing YAML. |
Please login to continue.