You are here

public static function Yaml::getFileExtension in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Serialization/Yaml.php \Drupal\Component\Serialization\Yaml::getFileExtension()

Gets the file extension for this serialization format.

Return value

string The file extension, without leading dot.

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';
}