function ConfigEntityDenormalizer::getSupportedTypes

Same name and namespace in other branches
  1. 10 core/modules/jsonapi/src/Normalizer/ConfigEntityDenormalizer.php \Drupal\jsonapi\Normalizer\ConfigEntityDenormalizer::getSupportedTypes()
  2. main core/modules/jsonapi/src/Normalizer/ConfigEntityDenormalizer.php \Drupal\jsonapi\Normalizer\ConfigEntityDenormalizer::getSupportedTypes()

Overrides NormalizerBase::getSupportedTypes

File

core/modules/jsonapi/src/Normalizer/ConfigEntityDenormalizer.php, line 33

Class

ConfigEntityDenormalizer
Converts the Drupal config entity object to a JSON:API array structure.

Namespace

Drupal\jsonapi\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.