You are here

public function JsonApiDocumentTopLevelNormalizerValue::rasterizeIncludes in JSON:API 8

Get the includes.

Return value

array[] An array of includes keyed by entity type and id pair.

Overrides ValueExtractorInterface::rasterizeIncludes

1 call to JsonApiDocumentTopLevelNormalizerValue::rasterizeIncludes()
JsonApiDocumentTopLevelNormalizerValue::rasterizeValue in src/Normalizer/Value/JsonApiDocumentTopLevelNormalizerValue.php
Get the rasterized value.

File

src/Normalizer/Value/JsonApiDocumentTopLevelNormalizerValue.php, line 218

Class

JsonApiDocumentTopLevelNormalizerValue
Helps normalize the top level document in compliance with the JSON API spec.

Namespace

Drupal\jsonapi\Normalizer\Value

Code

public function rasterizeIncludes() {

  // First gather all the includes in the chain.
  return array_map(function ($include) {
    return $include
      ->rasterizeValue();
  }, $this
    ->getIncludes());
}