protected static function Yaml::getSerializer in Drupal 10
Same name in this branch
- 10 core/lib/Drupal/Core/Serialization/Yaml.php \Drupal\Core\Serialization\Yaml::getSerializer()
- 10 core/lib/Drupal/Component/Serialization/Yaml.php \Drupal\Component\Serialization\Yaml::getSerializer()
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Serialization/Yaml.php \Drupal\Core\Serialization\Yaml::getSerializer()
- 9 core/lib/Drupal/Core/Serialization/Yaml.php \Drupal\Core\Serialization\Yaml::getSerializer()
Determines which implementation to use for parsing YAML.
Overrides Yaml::getSerializer
File
- core/
lib/ Drupal/ Core/ Serialization/ Yaml.php, line 18
Class
- Yaml
- Provides a YAML serialization implementation.
Namespace
Drupal\Core\SerializationCode
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();
}