You are here

public function AuthenticationMultivalueKeyType::unserialize in Key 8

Unserialize a string of key values into an array.

Parameters

string $value: A serialized string of key values.

Return value

array An array of key values.

Overrides KeyTypeMultivalueInterface::unserialize

1 call to AuthenticationMultivalueKeyType::unserialize()
AuthenticationMultivalueKeyType::validateKeyValue in src/Plugin/KeyType/AuthenticationMultivalueKeyType.php
Allows the Key Type plugin to validate the key value.

File

src/Plugin/KeyType/AuthenticationMultivalueKeyType.php, line 91

Class

AuthenticationMultivalueKeyType
Defines a generic key type for authentication with multiple values.

Namespace

Drupal\key\Plugin\KeyType

Code

public function unserialize($value) {
  return Json::decode($value);
}