You are here

public function FieldStorageFormatInterface::encode in Apigee Edge 8

Encodes field data to the target format.

Parameters

array $data: Data to be encoded.

Return value

string Encoded data.

2 methods override FieldStorageFormatInterface::encode()
CSV::encode in src/Plugin/ApigeeFieldStorageFormat/CSV.php
Encodes field data to the target format.
JSON::encode in src/Plugin/ApigeeFieldStorageFormat/JSON.php
Encodes field data to the target format.

File

src/Plugin/FieldStorageFormatInterface.php, line 36

Class

FieldStorageFormatInterface
Defines an interface for Apigee Edge field storage formatters.

Namespace

Drupal\apigee_edge\Plugin

Code

public function encode(array $data) : string;