function ListNormalizer::getSupportedTypes

Same name and namespace in other branches
  1. 11.x core/modules/serialization/src/Normalizer/ListNormalizer.php \Drupal\serialization\Normalizer\ListNormalizer::getSupportedTypes()
  2. main core/modules/serialization/src/Normalizer/ListNormalizer.php \Drupal\serialization\Normalizer\ListNormalizer::getSupportedTypes()

Overrides NormalizerBase::getSupportedTypes

1 method overrides ListNormalizer::getSupportedTypes()
FieldNormalizer::getSupportedTypes in core/modules/serialization/src/Normalizer/FieldNormalizer.php

File

core/modules/serialization/src/Normalizer/ListNormalizer.php, line 32

Class

ListNormalizer
Converts list objects to arrays.

Namespace

Drupal\serialization\Normalizer

Code

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

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