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