function FieldNormalizer::getSupportedTypes
Overrides NormalizerBase::getSupportedTypes
1 method overrides FieldNormalizer::getSupportedTypes()
- EntityReferenceFieldNormalizer::getSupportedTypes in core/
modules/ jsonapi/ src/ Normalizer/ EntityReferenceFieldNormalizer.php
File
-
core/
modules/ jsonapi/ src/ Normalizer/ FieldNormalizer.php, line 104
Class
- FieldNormalizer
- Converts the Drupal field structure to a JSON:API array structure.
Namespace
Drupal\jsonapi\NormalizerCode
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.