public function JsonEncoder::supportsDecoding

Checks whether the serializer can decode from given format

Parameters

string $format format name:

Return value

Boolean

Overrides DecoderInterface::supportsDecoding

File

drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/JsonEncoder.php, line 86

Class

JsonEncoder
Encodes JSON data

Namespace

Symfony\Component\Serializer\Encoder

Code

public function supportsDecoding($format) {
  return self::FORMAT === $format;
}