You are here

interface KeyTypeMultivalueInterface in Key 8

Provides an interface for Key Type plugins that support multivalue keys.

Hierarchy

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\Plugin
View 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

Namesort descending Modifiers Type Description Overrides
KeyTypeMultivalueInterface::serialize public function Serialize an array of key values into a string. 2
KeyTypeMultivalueInterface::unserialize public function Unserialize a string of key values into an array. 2