public function JsonDecode::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/JsonDecode.php, line 61

Class

JsonDecode
Decodes JSON data

Namespace

Symfony\Component\Serializer\Encoder

Code

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