function EntityReferenceFieldItemNormalizer::getSupportedTypes

Overrides FieldItemNormalizer::getSupportedTypes

File

core/modules/serialization/src/Normalizer/EntityReferenceFieldItemNormalizer.php, line 93

Class

EntityReferenceFieldItemNormalizer
Adds the file URI to embedded file entities.

Namespace

Drupal\serialization\Normalizer

Code

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

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