function 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\Normalizer

Code

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.