FieldStorageConfig::$cardinality
Same name in other branches
- 8.9.x core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::cardinality
- 10 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::cardinality
- 11.x core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::cardinality
The field cardinality.
The maximum number of values the field can hold. Possible values are positive integers or FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. Defaults to 1.
Type: int
File
-
core/
modules/ field/ src/ Entity/ FieldStorageConfig.php, line 127
Class
- FieldStorageConfig
- Defines the Field storage configuration entity.
Namespace
Drupal\field\EntityCode
protected $cardinality = 1;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.