function ContentEntityNormalizer::getSupportedTypes

Overrides EntityNormalizer::getSupportedTypes

File

core/modules/serialization/src/Normalizer/ContentEntityNormalizer.php, line 35

Class

ContentEntityNormalizer
Normalizes/denormalizes Drupal content entities into an array structure.

Namespace

Drupal\serialization\Normalizer

Code

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

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