function SerializationInterface::getFileExtension
Same name in other branches
- 9 core/lib/Drupal/Component/Serialization/SerializationInterface.php \Drupal\Component\Serialization\SerializationInterface::getFileExtension()
- 8.9.x core/lib/Drupal/Component/Serialization/SerializationInterface.php \Drupal\Component\Serialization\SerializationInterface::getFileExtension()
- 11.x core/lib/Drupal/Component/Serialization/SerializationInterface.php \Drupal\Component\Serialization\SerializationInterface::getFileExtension()
Gets the file extension for this serialization format.
Return value
string The file extension, without leading dot.
4 methods override SerializationInterface::getFileExtension()
- Json::getFileExtension in core/
lib/ Drupal/ Component/ Serialization/ Json.php - Gets the file extension for this serialization format.
- Yaml::getFileExtension in core/
lib/ Drupal/ Component/ Serialization/ Yaml.php - Gets the file extension for this serialization format.
- YamlPecl::getFileExtension in core/
lib/ Drupal/ Component/ Serialization/ YamlPecl.php - Gets the file extension for this serialization format.
- YamlSymfony::getFileExtension in core/
lib/ Drupal/ Component/ Serialization/ YamlSymfony.php - Gets the file extension for this serialization format.
File
-
core/
lib/ Drupal/ Component/ Serialization/ SerializationInterface.php, line 42
Class
- SerializationInterface
- Defines an interface for serialization formats.
Namespace
Drupal\Component\SerializationCode
public static function getFileExtension();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.