public static function Yaml::getFileExtension in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
1 call to Yaml::getFileExtension()
- YamlTest::testGetFileExtension in core/
tests/ Drupal/ Tests/ Component/ Serialization/ YamlTest.php - @covers ::getFileExtension
File
- core/
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\SerializationCode
public static function getFileExtension() {
return 'yml';
}