public property FieldType::$cardinality in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Field/Annotation/FieldType.php \Drupal\Core\Field\Annotation\FieldType::cardinality
- 9 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 101
Class
- FieldType
- Defines a FieldType annotation object.
Namespace
Drupal\Core\Field\AnnotationCode
public $cardinality;