You are here

public function EdgeKeyTypeBase::serialize in Apigee Edge 8

Serialize an array of key values into a string.

Parameters

array $array: An array of key values.

Return value

string A serialized string of key values.

Overrides KeyTypeMultivalueInterface::serialize

File

src/Plugin/EdgeKeyTypeBase.php, line 38

Class

EdgeKeyTypeBase
Defines a base class for Apigee Edge Key Type plugins.

Namespace

Drupal\apigee_edge\Plugin

Code

public function serialize(array $array) {
  return Json::encode($array);
}