public function JsonEncoder::supportsDecoding

Same name in this branch
  1. 8.x drupal/core/modules/hal/lib/Drupal/hal/Encoder/JsonEncoder.php \Drupal\hal\Encoder\JsonEncoder::supportsDecoding()
  2. 8.x drupal/core/vendor/symfony/serializer/Symfony/Component/Serializer/Encoder/JsonEncoder.php \Symfony\Component\Serializer\Encoder\JsonEncoder::supportsDecoding()

Checks whether the deserializer can decode from given format.

Parameters

string $format format name:

Return value

Boolean

Overrides DecoderInterface::supportsDecoding

1 method overrides JsonEncoder::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;
}