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

Breadcrumb

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

function ChainDecoder::decode

Overrides DecoderInterface::decode

File

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

Class

ChainDecoder
Decoder delegating the decoding to a chain of decoders.

Namespace

Symfony\Component\Serializer\Encoder

Code

public final function decode(string $data, string $format, array $context = []) : mixed {
    return $this->getDecoder($format, $context)
        ->decode($data, $format, $context);
}
RSS feed
Powered by Drupal