You are here

public function Serializer::supportsDenormalization in Drupal 9

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

File

core/modules/jsonapi/src/Serializer/Serializer.php, line 107

Class

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

Namespace

Drupal\jsonapi\Serializer

Code

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