FieldType::$cardinality
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Field/Annotation/FieldType.php \Drupal\Core\Field\Annotation\FieldType::cardinality
- 8.9.x core/lib/Drupal/Core/Field/Annotation/FieldType.php \Drupal\Core\Field\Annotation\FieldType::cardinality
- 10 core/lib/Drupal/Core/Field/Annotation/FieldType.php \Drupal\Core\Field\Annotation\FieldType::cardinality
An integer defining a fixed cardinality for this field type.
If this value is not set, cardinality can be configured in the field UI.
Type: int|null
File
-
core/
lib/ Drupal/ Core/ Field/ Annotation/ FieldType.php, line 112
Class
- FieldType
- Defines a FieldType annotation object.
Namespace
Drupal\Core\Field\AnnotationCode
public $cardinality;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.