public function Serializer::supportsNormalization in JSON:API 8
Same name and namespace in other branches
- 8.2 src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer::supportsNormalization()
File
- src/
Serializer/ Serializer.php, line 67
Class
- Serializer
- Overrides the Symfony serializer to cordon off our incompatible normalizers.
Namespace
Drupal\jsonapi\SerializerCode
public function supportsNormalization($data, $format = NULL) {
return $this
->selfSupportsNormalization($data, $format) || $this->fallbackNormalizer
->supportsNormalization($data, $format);
}