You are here

public static function SerializationInterface::getFileExtension in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Serialization/SerializationInterface.php \Drupal\Component\Serialization\SerializationInterface::getFileExtension()
  2. 9 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.

3 methods override SerializationInterface::getFileExtension()
Yaml::getFileExtension in core/lib/Drupal/Component/Serialization/Yaml.php
Gets the file extension for this serialization format.
YamlParserProxy::getFileExtension in core/tests/Drupal/Tests/Core/Serialization/YamlTest.php
Gets the file extension for this serialization format.
YamlParserProxy::getFileExtension in core/tests/Drupal/Tests/Component/Serialization/YamlTest.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\Serialization

Code

public static function getFileExtension();