You are here

public function EntityNormalizerValue::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

File

src/Normalizer/Value/EntityNormalizerValue.php, line 119

Class

EntityNormalizerValue
Helps normalize entities 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());
}