function YamlSymfony::getFileExtension

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

Overrides SerializationInterface::getFileExtension

1 call to YamlSymfony::getFileExtension()
YamlSymfonyTest::testGetFileExtension in core/tests/Drupal/Tests/Component/Serialization/YamlSymfonyTest.php
@covers ::getFileExtension

File

core/lib/Drupal/Component/Serialization/YamlSymfony.php, line 56

Class

YamlSymfony
Default serialization for YAML using the Symfony component.

Namespace

Drupal\Component\Serialization

Code

public static function getFileExtension() {
    @trigger_error('Calling ' . __METHOD__ . '() is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use \\Drupal\\Component\\Serialization\\Yaml::getFileExtension() instead. See https://www.drupal.org/node/3415489', E_USER_DEPRECATED);
    return 'yml';
}

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