function ComplexDataNormalizer::getSupportedTypes

Same name in other branches
  1. 10 core/modules/serialization/src/Normalizer/ComplexDataNormalizer.php \Drupal\serialization\Normalizer\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\Normalizer

Code

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.