public property Field::$cardinality

The field cardinality.

The maximum number of values the field can hold. Possible values are positive integers or FIELD_CARDINALITY_UNLIMITED. Defaults to 1.

Type: integer

File

drupal/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php, line 111
Contains \Drupal\field\Plugin\Core\Entity\Field.

Class

Field
Defines the Field entity.

Namespace

Drupal\field\Plugin\Core\Entity

Code

public $cardinality = 1;