You are here

private function Serializer::selfSupportsDenormalization in Drupal 9

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

Checks whether this class alone supports denormalization.

Parameters

mixed $data: Data to denormalize from.

string $type: The class to which the data should be denormalized.

string $format: The format being deserialized from.

array $context: (optional) Options available to the denormalizer.

Return value

bool Whether this class supports normalization for the given data and type.

2 calls to Serializer::selfSupportsDenormalization()
Serializer::denormalize in core/modules/jsonapi/src/Serializer/Serializer.php
Serializer::supportsDenormalization in core/modules/jsonapi/src/Serializer/Serializer.php

File

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

Class

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

Namespace

Drupal\jsonapi\Serializer

Code

private function selfSupportsDenormalization($data, $type, $format = NULL, array $context = []) {
  return parent::supportsDenormalization($data, $type, $format, $context);
}