public function EncoderInterface::supportsEncoding

Checks whether the serializer can encode to given format

Parameters

string $format format name:

Return value

Boolean

6 methods override EncoderInterface::supportsEncoding()
ChainEncoder::supportsEncoding in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/ChainEncoder.php
Checks whether the serializer can encode to given format
JsonEncode::supportsEncoding in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/JsonEncode.php
Checks whether the serializer can encode to given format
JsonEncoder::supportsEncoding in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/JsonEncoder.php
Checks whether the serializer can encode to given format
SerializationTestEncoder::supportsEncoding in drupal/core/modules/system/tests/modules/serialization_test/lib/Drupal/serialization_test/SerializationTestEncoder.php
Checks whether this encoder can encode to the requested format.
Serializer::supportsEncoding in drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Serializer.php
Checks whether the serializer can encode to given format

... See full list

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/EncoderInterface.php, line 37

Class

EncoderInterface
Defines the interface of encoders

Namespace

Symfony\Component\Serializer\Encoder

Code

public function supportsEncoding($format);