function FieldItemNormalizer::getSupportedTypes
Same name in this branch
- 10 core/modules/jsonapi/src/Normalizer/FieldItemNormalizer.php \Drupal\jsonapi\Normalizer\FieldItemNormalizer::getSupportedTypes()
Same name in other branches
- 11.x core/modules/jsonapi/src/Normalizer/FieldItemNormalizer.php \Drupal\jsonapi\Normalizer\FieldItemNormalizer::getSupportedTypes()
- 11.x core/modules/serialization/src/Normalizer/FieldItemNormalizer.php \Drupal\serialization\Normalizer\FieldItemNormalizer::getSupportedTypes()
Overrides ComplexDataNormalizer::getSupportedTypes
5 methods override FieldItemNormalizer::getSupportedTypes()
- BooleanItemNormalizer::getSupportedTypes in core/
modules/ serialization/ tests/ modules/ test_fieldtype_boolean_emoji_normalizer/ src/ Normalizer/ BooleanItemNormalizer.php - EntityReferenceFieldItemNormalizer::getSupportedTypes in core/
modules/ serialization/ src/ Normalizer/ EntityReferenceFieldItemNormalizer.php - StringNormalizer::getSupportedTypes in core/
modules/ jsonapi/ tests/ modules/ jsonapi_test_field_type/ src/ Normalizer/ StringNormalizer.php - TextItemSillyNormalizer::getSupportedTypes in core/
modules/ serialization/ tests/ modules/ field_normalization_test/ src/ Normalization/ TextItemSillyNormalizer.php - TimestampItemNormalizer::getSupportedTypes in core/
modules/ serialization/ src/ Normalizer/ TimestampItemNormalizer.php
File
-
core/
modules/ serialization/ src/ Normalizer/ FieldItemNormalizer.php, line 40
Class
- FieldItemNormalizer
- Denormalizes field item object structure by updating the entity field values.
Namespace
Drupal\serialization\NormalizerCode
public function getSupportedTypes(?string $format) : array {
return [
FieldItemInterface::class => TRUE,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.