public function Serializer::denormalize in JSON:API 8.2
Same name and namespace in other branches
- 8 src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer::denormalize()
File
- src/
Serializer/ Serializer.php, line 73
Class
- Serializer
- Overrides the Symfony serializer to cordon off our incompatible normalizers.
Namespace
Drupal\jsonapi\SerializerCode
public function denormalize($data, $type, $format = NULL, array $context = []) {
if ($this
->selfSupportsDenormalization($data, $type, $format, $context)) {
return parent::denormalize($data, $type, $format, $context);
}
return $this->fallbackNormalizer
->denormalize($data, $type, $format, $context);
}