interface KeyTypeMultivalueInterface in Key 8
Provides an interface for Key Type plugins that support multivalue keys.
Hierarchy
- interface \Drupal\key\Plugin\KeyTypeMultivalueInterface
Expanded class hierarchy of KeyTypeMultivalueInterface
All classes that implement KeyTypeMultivalueInterface
2 files declare their use of KeyTypeMultivalueInterface
- AuthenticationMultivalueKeyType.php in src/
Plugin/ KeyType/ AuthenticationMultivalueKeyType.php - MultiValueKeyType.php in tests/
modules/ key_test/ src/ Plugin/ KeyType/ MultiValueKeyType.php
File
- src/
Plugin/ KeyTypeMultivalueInterface.php, line 8
Namespace
Drupal\key\PluginView source
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);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KeyTypeMultivalueInterface:: |
public | function | Serialize an array of key values into a string. | 2 |
KeyTypeMultivalueInterface:: |
public | function | Unserialize a string of key values into an array. | 2 |