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

Breadcrumb

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

function TraceableEncoder::supportsDecoding

Overrides DecoderInterface::supportsDecoding

File

vendor/symfony/serializer/Debug/TraceableEncoder.php, line 80

Class

TraceableEncoder
Collects some data about encoding.

Namespace

Symfony\Component\Serializer\Debug

Code

public function supportsDecoding(string $format, array $context = []) : bool {
    if (!$this->encoder instanceof DecoderInterface) {
        return false;
    }
    return $this->encoder
        ->supportsDecoding($format, $context);
}
RSS feed
Powered by Drupal