public function JsonEncode::supportsEncoding in Zircon Profile 8
Same name and namespace in other branches
- 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\EncoderCode
public function supportsEncoding($format) {
return JsonEncoder::FORMAT === $format;
}