You are here

interface ValueExtractorInterface in JSON:API 8

Interface for value objects used in the JSON API normalization process.

@internal

Hierarchy

Expanded class hierarchy of ValueExtractorInterface

All classes that implement ValueExtractorInterface

1 file declares its use of ValueExtractorInterface
JsonEncoder.php in src/Encoder/JsonEncoder.php

File

src/Normalizer/Value/ValueExtractorInterface.php, line 10

Namespace

Drupal\jsonapi\Normalizer\Value
View source
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();

}

Members

Namesort descending Modifiers Type Description Overrides
ValueExtractorInterface::rasterizeIncludes public function Get the includes. 5
ValueExtractorInterface::rasterizeValue public function Get the rasterized value. 4