You are here

ValueExtractorInterface.php in JSON:API 8

File

src/Normalizer/Value/ValueExtractorInterface.php
View source
<?php

namespace Drupal\jsonapi\Normalizer\Value;


/**
 * Interface for value objects used in the JSON API normalization process.
 *
 * @internal
 */
interface ValueExtractorInterface {

  /**
   * Get the rasterized value.
   *
   * @return mixed
   *   The value.
   */
  public function rasterizeValue();

  /**
   * Get the includes.
   *
   * @return array[]
   *   An array of includes keyed by entity type and id pair.
   */
  public function rasterizeIncludes();

}

Interfaces

Namesort descending Description
ValueExtractorInterface Interface for value objects used in the JSON API normalization process.