KeyTypeMultivalueInterface.php in Key 8
Namespace
Drupal\key\PluginFile
src/Plugin/KeyTypeMultivalueInterface.phpView source
<?php
namespace Drupal\key\Plugin;
/**
* Provides an interface for Key Type plugins that support multivalue keys.
*/
interface KeyTypeMultivalueInterface {
/**
* Serialize an array of key values into a string.
*
* @param array $array
* An array of key values.
*
* @return string
* A serialized string of key values.
*/
public function serialize(array $array);
/**
* Unserialize a string of key values into an array.
*
* @param string $value
* A serialized string of key values.
*
* @return array
* An array of key values.
*/
public function unserialize($value);
}
Interfaces
Name | Description |
---|---|
KeyTypeMultivalueInterface | Provides an interface for Key Type plugins that support multivalue keys. |