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

Breadcrumb

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

function ChainDecoder::supportsDecoding

Overrides ContextAwareDecoderInterface::supportsDecoding

File

vendor/symfony/serializer/Encoder/ChainDecoder.php, line 45

Class

ChainDecoder
Decoder delegating the decoding to a chain of decoders.

Namespace

Symfony\Component\Serializer\Encoder

Code

public function supportsDecoding(string $format, array $context = []) : bool {
    try {
        $this->getDecoder($format, $context);
    } catch (RuntimeException) {
        return false;
    }
    return true;
}
RSS feed
Powered by Drupal