function Serializer::selfSupportsNormalization
Same name in other branches
- 8.9.x core/modules/jsonapi/src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer::selfSupportsNormalization()
- 10 core/modules/jsonapi/src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer::selfSupportsNormalization()
- 11.x core/modules/jsonapi/src/Serializer/Serializer.php \Drupal\jsonapi\Serializer\Serializer::selfSupportsNormalization()
Checks whether this class alone supports normalization.
Parameters
mixed $data: Data to normalize.
string $format: The format being (de-)serialized from or into.
array $context: (optional) Options available to the normalizer.
Return value
bool Whether this class supports normalization for the given data.
2 calls to Serializer::selfSupportsNormalization()
- Serializer::normalize in core/
modules/ jsonapi/ src/ Serializer/ Serializer.php - Serializer::supportsNormalization in core/
modules/ jsonapi/ src/ Serializer/ Serializer.php
File
-
core/
modules/ jsonapi/ src/ Serializer/ Serializer.php, line 100
Class
- Serializer
- Overrides the Symfony serializer to cordon off our incompatible normalizers.
Namespace
Drupal\jsonapi\SerializerCode
private function selfSupportsNormalization($data, $format = NULL, array $context = []) {
return parent::supportsNormalization($data, $format, $context);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.