function YamlPecl::getFileExtension

Same name in other branches
  1. 9 core/lib/Drupal/Component/Serialization/YamlPecl.php \Drupal\Component\Serialization\YamlPecl::getFileExtension()
  2. 8.9.x core/lib/Drupal/Component/Serialization/YamlPecl.php \Drupal\Component\Serialization\YamlPecl::getFileExtension()
  3. 11.x core/lib/Drupal/Component/Serialization/YamlPecl.php \Drupal\Component\Serialization\YamlPecl::getFileExtension()

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.