You are here

public function JsonEncode::supportsEncoding in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Encoder/JsonEncode.php \Symfony\Component\Serializer\Encoder\JsonEncode::supportsEncoding()

Checks whether the serializer can encode to given format.

Parameters

string $format format name:

Return value

bool

Overrides EncoderInterface::supportsEncoding

File

vendor/symfony/serializer/Encoder/JsonEncode.php, line 68

Class

JsonEncode
Encodes JSON data.

Namespace

Symfony\Component\Serializer\Encoder

Code

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