function Yaml::getFileExtension

Same name in other branches
  1. 9 core/lib/Drupal/Component/Serialization/Yaml.php \Drupal\Component\Serialization\Yaml::getFileExtension()
  2. 8.9.x core/lib/Drupal/Component/Serialization/Yaml.php \Drupal\Component\Serialization\Yaml::getFileExtension()
  3. 11.x core/lib/Drupal/Component/Serialization/Yaml.php \Drupal\Component\Serialization\Yaml::getFileExtension()

Overrides SerializationInterface::getFileExtension

1 call to Yaml::getFileExtension()
YamlTest::testGetFileExtension in core/tests/Drupal/Tests/Component/Serialization/YamlTest.php
@covers ::getFileExtension

File

core/lib/Drupal/Component/Serialization/Yaml.php, line 50

Class

Yaml
Provides a YAML serialization implementation using symfony/yaml.

Namespace

Drupal\Component\Serialization

Code

public static function getFileExtension() {
    return 'yml';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.