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/hal/src/Encoder/JsonEncoder.php \Drupal\hal\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/ hal/ src/ Encoder/ JsonEncoder.php, line 36 - Contains \Drupal\hal\Encoder\JsonEncoder.
Class
- JsonEncoder
- Encodes HAL data in JSON.
Namespace
Drupal\hal\EncoderCode
public function supportsDecoding($format) {
return $format == $this->format;
}