class Yaml
Same name in this branch
- 8.9.x core/lib/Drupal/Component/Serialization/Yaml.php \Drupal\Component\Serialization\Yaml
Same name in other branches
- 9 core/lib/Drupal/Core/Serialization/Yaml.php \Drupal\Core\Serialization\Yaml
- 9 core/lib/Drupal/Component/Serialization/Yaml.php \Drupal\Component\Serialization\Yaml
- 10 core/lib/Drupal/Component/Serialization/Yaml.php \Drupal\Component\Serialization\Yaml
- 11.x core/lib/Drupal/Component/Serialization/Yaml.php \Drupal\Component\Serialization\Yaml
Provides a YAML serialization implementation.
Allow settings to override the YAML implementation resolution.
Hierarchy
- class \Drupal\Component\Serialization\Yaml implements \Drupal\Component\Serialization\SerializationInterface
- class \Drupal\Core\Serialization\Yaml extends \Drupal\Component\Serialization\Yaml
Expanded class hierarchy of Yaml
58 files declare their use of Yaml
- argument-placeholder.php in core/
modules/ views/ tests/ fixtures/ update/ argument-placeholder.php - Text fixture.
- boolean-filter-values.php in core/
modules/ views/ tests/ fixtures/ update/ boolean-filter-values.php - Test fixture.
- ConfigController.php in core/
modules/ config/ src/ Controller/ ConfigController.php - ConfigExportUITest.php in core/
modules/ config/ tests/ src/ Functional/ ConfigExportUITest.php - ConfigInstallProfileUnmetDependenciesTest.php in core/
modules/ config/ tests/ src/ Functional/ ConfigInstallProfileUnmetDependenciesTest.php
2 string references to 'Yaml'
- ConfigSingleImportExportTest::testImport in core/
modules/ config/ tests/ src/ Functional/ ConfigSingleImportExportTest.php - Tests importing a single configuration file.
- Yaml::getSerializer in core/
lib/ Drupal/ Component/ Serialization/ Yaml.php - Determines which implementation to use for parsing YAML.
File
-
core/
lib/ Drupal/ Core/ Serialization/ Yaml.php, line 13
Namespace
Drupal\Core\SerializationView source
class Yaml extends ComponentYaml {
/**
* {@inheritdoc}
*/
protected static function getSerializer() {
// Allow settings.php to override the YAML serializer.
if (!isset(static::$serializer) && ($class = Settings::get('yaml_parser_class'))) {
static::$serializer = $class;
}
return parent::getSerializer();
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
Yaml::$serializer | protected static | property | The YAML implementation to use. | |
Yaml::decode | public static | function | Overrides SerializationInterface::decode | |
Yaml::encode | public static | function | Overrides SerializationInterface::encode | |
Yaml::getFileExtension | public static | function | Overrides SerializationInterface::getFileExtension | |
Yaml::getSerializer | protected static | function | Determines which implementation to use for parsing YAML. | Overrides Yaml::getSerializer |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.