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

Breadcrumb

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

function EncoderInterface::supportsEncoding

Checks whether the serializer can encode to given format.

Parameters

string $format Format name:

9 methods override EncoderInterface::supportsEncoding()
ContextAwareEncoderInterface::supportsEncoding in vendor/symfony/serializer/Encoder/ContextAwareEncoderInterface.php
CsvEncoder::supportsEncoding in vendor/symfony/serializer/Encoder/CsvEncoder.php
Checks whether the serializer can encode to given format.
JsonEncode::supportsEncoding in vendor/symfony/serializer/Encoder/JsonEncode.php
Checks whether the serializer can encode to given format.
JsonEncoder::supportsEncoding in vendor/symfony/serializer/Encoder/JsonEncoder.php
Checks whether the serializer can encode to given format.
TraceableEncoder::supportsEncoding in vendor/symfony/serializer/Debug/TraceableEncoder.php
Checks whether the serializer can encode to given format.

... See full list

File

vendor/symfony/serializer/Encoder/EncoderInterface.php, line 37

Class

EncoderInterface
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Symfony\Component\Serializer\Encoder

Code

public function supportsEncoding(string $format) : bool;
RSS feed
Powered by Drupal