private function Serializer::selfSupportsDenormalization in Drupal 8
Same name and namespace in other branches
- 9 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 - Denormalizes data back into an object of the given class.
- Serializer::supportsDenormalization in core/
modules/ jsonapi/ src/ Serializer/ Serializer.php - Checks whether the given class is supported for denormalization by this normalizer.
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\SerializerCode
private function selfSupportsDenormalization($data, $type, $format = NULL, array $context = []) {
return parent::supportsDenormalization($data, $type, $format, $context);
}