interface FieldStorageFormatInterface in Apigee Edge 8
Defines an interface for Apigee Edge field storage formatters.
Hierarchy
- interface \Drupal\apigee_edge\Plugin\FieldStorageFormatInterface
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\PluginView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FieldStorageFormatInterface:: |
public | function | Decodes field data from the target format. | 2 |
FieldStorageFormatInterface:: |
public | function | Encodes field data to the target format. | 2 |