function ComplexDataNormalizer::getSupportedTypes
Overrides NormalizerBase::getSupportedTypes
3 methods override ComplexDataNormalizer::getSupportedTypes()
- EntityNormalizer::getSupportedTypes in core/
modules/ serialization/ src/ Normalizer/ EntityNormalizer.php - FieldItemNormalizer::getSupportedTypes in core/
modules/ serialization/ src/ Normalizer/ FieldItemNormalizer.php - TestExtendedNormalizer::getSupportedTypes in core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ ComplexDataNormalizerTest.php
File
-
core/
modules/ serialization/ src/ Normalizer/ ComplexDataNormalizer.php, line 45
Class
- ComplexDataNormalizer
- Converts the Drupal entity object structures to a normalized array.
Namespace
Drupal\serialization\NormalizerCode
public function getSupportedTypes(?string $format) : array {
return [
ComplexDataInterface::class => TRUE,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.