function RelationshipNormalizer::getSupportedTypes

Overrides NormalizerBase::getSupportedTypes

File

core/modules/jsonapi/src/Normalizer/RelationshipNormalizer.php, line 39

Class

RelationshipNormalizer
Normalizes a JSON:API relationship object.

Namespace

Drupal\jsonapi\Normalizer

Code

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

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