You are here

public static function YamlSymfony::getFileExtension in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Serialization/YamlSymfony.php \Drupal\Component\Serialization\YamlSymfony::getFileExtension()
  2. 10 core/lib/Drupal/Component/Serialization/YamlSymfony.php \Drupal\Component\Serialization\YamlSymfony::getFileExtension()

Gets the file extension for this serialization format.

Return value

string The file extension, without leading dot.

Overrides SerializationInterface::getFileExtension

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

File

core/lib/Drupal/Component/Serialization/YamlSymfony.php, line 47

Class

YamlSymfony
Default serialization for YAML using the Symfony component.

Namespace

Drupal\Component\Serialization

Code

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