public static function Json::getFileExtension in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Component/Serialization/Json.php \Drupal\Component\Serialization\Json::getFileExtension()
Gets the file extension for this serialization format.
Return value
string The file extension, without leading dot.
Overrides SerializationInterface::getFileExtension
File
- lib/
Drupal/ Component/ Serialization/ Json.php, line 37 - Contains \Drupal\Component\Serialization\Json.
Class
- Json
- Default serialization for JSON.
Namespace
Drupal\Component\SerializationCode
public static function getFileExtension() {
return 'json';
}