function Serializer::selfSupportsDenormalization
Same name in other branches
- 8.9.x core/modules/jsonapi/src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer::selfSupportsDenormalization()
- 10 core/modules/jsonapi/src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer::selfSupportsDenormalization()
- 11.x 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\SerializerCode
private function selfSupportsDenormalization($data, $type, $format = NULL, array $context = []) {
return parent::supportsDenormalization($data, $type, $format, $context);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.