You are here

public function FieldNormalizerValue::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/FieldNormalizerValue.php, line 96

Class

FieldNormalizerValue
Helps normalize fields in compliance with the JSON API spec.

Namespace

Drupal\jsonapi\Normalizer\Value

Code

public function rasterizeIncludes() {
  return array_map(function ($include) {
    return $include
      ->rasterizeValue();
  }, $this->includes);
}