function Yaml::getFileExtension

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Serialization/Yaml.php \Drupal\Component\Serialization\Yaml::getFileExtension()
  2. 10 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

File

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

Class

Yaml
Provides a YAML serialization implementation.

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.