public function JsonEncoder::supportsDecoding in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/serializer/Encoder/JsonEncoder.php \Symfony\Component\Serializer\Encoder\JsonEncoder::supportsDecoding()
- 8 core/modules/hal/src/Encoder/JsonEncoder.php \Drupal\hal\Encoder\JsonEncoder::supportsDecoding()
- 8 core/modules/serialization/src/Encoder/JsonEncoder.php \Drupal\serialization\Encoder\JsonEncoder::supportsDecoding()
Same name and namespace in other branches
- 8.0 core/modules/serialization/src/Encoder/JsonEncoder.php \Drupal\serialization\Encoder\JsonEncoder::supportsDecoding()
Checks whether the deserializer can decode from given format.
Parameters
string $format format name:
Return value
bool
Overrides JsonEncoder::supportsDecoding
File
- core/
modules/ serialization/ src/ Encoder/ JsonEncoder.php, line 36 - Contains \Drupal\serialization\Encoder\JsonEncoder.
Class
- JsonEncoder
- Adds 'ajax to the supported content types of the JSON encoder'
Namespace
Drupal\serialization\EncoderCode
public function supportsDecoding($format) {
return in_array($format, static::$format);
}