You are here

KeyTypeMultivalueInterface.php in Key 8

Namespace

Drupal\key\Plugin

File

src/Plugin/KeyTypeMultivalueInterface.php
View 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

Namesort descending Description
KeyTypeMultivalueInterface Provides an interface for Key Type plugins that support multivalue keys.