You are here

public static function YamlPecl::getFileExtension in Drupal 9

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

Gets the file extension for this serialization format.

Return value

string The file extension, without leading dot.

Overrides SerializationInterface::getFileExtension

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

File

core/lib/Drupal/Component/Serialization/YamlPecl.php, line 78

Class

YamlPecl
Provides default serialization for YAML using the PECL extension.

Namespace

Drupal\Component\Serialization

Code

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