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

Breadcrumb

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

function TraceableEncoder::supportsEncoding

Overrides EncoderInterface::supportsEncoding

File

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

Class

TraceableEncoder
Collects some data about encoding.

Namespace

Symfony\Component\Serializer\Debug

Code

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