public function MultiValueKeyType::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
File
- tests/
modules/ key_test/ src/ Plugin/ KeyType/ MultiValueKeyType.php, line 68
Class
- MultiValueKeyType
- Defines a key type that is multi-value.
Namespace
Drupal\key_test\Plugin\KeyTypeCode
public function unserialize($value) {
return json_decode($value, TRUE);
}