You are here

public property KeyType::$multivalue in Key 8

The fields available in keys with multiple values.

This is used to indicate if a key type supports multiple values and, if so, information about its fields. Fields can be defined in either of the following two formats.

Simple: "username" = @Translation("User name")

Complex: "password" = { "label" = @Translation("Password"), "required" = false }

Fields are assumed to be required, unless otherwise specified.

Type: array

File

src/Annotation/KeyType.php, line 82

Class

KeyType
Defines a key type annotation object.

Namespace

Drupal\key\Annotation

Code

public $multivalue = [
  'enabled' => FALSE,
  'fields' => [],
];