function ConfigEntityNormalizer::getSupportedTypes

Same name in other branches
  1. 10 core/modules/serialization/src/Normalizer/ConfigEntityNormalizer.php \Drupal\serialization\Normalizer\ConfigEntityNormalizer::getSupportedTypes()

Overrides EntityNormalizer::getSupportedTypes

1 method overrides ConfigEntityNormalizer::getSupportedTypes()
LayoutEntityDisplayNormalizer::getSupportedTypes in core/modules/layout_builder/src/Normalizer/LayoutEntityDisplayNormalizer.php

File

core/modules/serialization/src/Normalizer/ConfigEntityNormalizer.php, line 48

Class

ConfigEntityNormalizer
Normalizes/denormalizes Drupal config entity objects into an array structure.

Namespace

Drupal\serialization\Normalizer

Code

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

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