You are here

interface FieldStorageFormatInterface in Apigee Edge 8

Defines an interface for Apigee Edge field storage formatters.

Hierarchy

Expanded class hierarchy of FieldStorageFormatInterface

All classes that implement FieldStorageFormatInterface

3 files declare their use of FieldStorageFormatInterface
CSV.php in src/Plugin/ApigeeFieldStorageFormat/CSV.php
FieldAttributeConverter.php in src/FieldAttributeConverter.php
JSON.php in src/Plugin/ApigeeFieldStorageFormat/JSON.php

File

src/Plugin/FieldStorageFormatInterface.php, line 25

Namespace

Drupal\apigee_edge\Plugin
View source
interface FieldStorageFormatInterface {

  /**
   * Encodes field data to the target format.
   *
   * @param array $data
   *   Data to be encoded.
   *
   * @return string
   *   Encoded data.
   */
  public function encode(array $data) : string;

  /**
   * Decodes field data from the target format.
   *
   * @param string $data
   *   Encoded data.
   *
   * @return array
   *   Decoded data.
   */
  public function decode(string $data) : array;

}

Members

Namesort descending Modifiers Type Description Overrides
FieldStorageFormatInterface::decode public function Decodes field data from the target format. 2
FieldStorageFormatInterface::encode public function Encodes field data to the target format. 2