Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. YamlEncoder.php

function YamlEncoder::supportsDecoding

Overrides DecoderInterface::supportsDecoding

File

vendor/symfony/serializer/Encoder/YamlEncoder.php, line 91

Class

YamlEncoder
Encodes YAML data.

Namespace

Symfony\Component\Serializer\Encoder

Code

public function supportsDecoding(string $format) : bool {
    return self::FORMAT === $format || self::ALTERNATIVE_FORMAT === $format;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal