function ComplexDataNormalizer::getSupportedTypes

Same name and namespace in other branches
  1. 11.x core/modules/serialization/src/Normalizer/ComplexDataNormalizer.php \Drupal\serialization\Normalizer\ComplexDataNormalizer::getSupportedTypes()
  2. main 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 54

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.