You are here

public static function Yaml::getFileExtension in Service Container 7

Same name and namespace in other branches
  1. 7.2 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

lib/Drupal/Component/Serialization/Yaml.php, line 51
Contains \Drupal\Component\Serialization\Yaml.

Class

Yaml
Default serialization for YAML using the Symfony component.

Namespace

Drupal\Component\Serialization

Code

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