You are here

public function Serializer::supportsDenormalization in JSON:API 8

Same name and namespace in other branches
  1. 8.2 src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer::supportsDenormalization()

File

src/Serializer/Serializer.php, line 89

Class

Serializer
Overrides the Symfony serializer to cordon off our incompatible normalizers.

Namespace

Drupal\jsonapi\Serializer

Code

public function supportsDenormalization($data, $type, $format = NULL) {
  return $this
    ->selfSupportsDenormalization($data, $type, $format) || $this->fallbackNormalizer
    ->supportsDenormalization($data, $type, $format);
}