function ContentEntityDenormalizer::getSupportedTypes

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

Overrides NormalizerBase::getSupportedTypes

File

core/modules/jsonapi/src/Normalizer/ContentEntityDenormalizer.php, line 89

Class

ContentEntityDenormalizer
Converts a JSON:API array structure into a Drupal entity object.

Namespace

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