function FieldNormalizer::getSupportedTypes

Same name in this branch
  1. 11.x core/modules/jsonapi/src/Normalizer/FieldNormalizer.php \Drupal\jsonapi\Normalizer\FieldNormalizer::getSupportedTypes()
Same name in other branches
  1. 10 core/modules/jsonapi/src/Normalizer/FieldNormalizer.php \Drupal\jsonapi\Normalizer\FieldNormalizer::getSupportedTypes()
  2. 10 core/modules/serialization/src/Normalizer/FieldNormalizer.php \Drupal\serialization\Normalizer\FieldNormalizer::getSupportedTypes()

Overrides ListNormalizer::getSupportedTypes

File

core/modules/serialization/src/Normalizer/FieldNormalizer.php, line 55

Class

FieldNormalizer
Denormalizes data to Drupal field values.

Namespace

Drupal\serialization\Normalizer

Code

public function getSupportedTypes(?string $format) : array {
    return [
        FieldItemListInterface::class => TRUE,
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.