public function FieldStorageDefinitionInterface::getCardinality in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php \Drupal\Core\Field\FieldStorageDefinitionInterface::getCardinality()
- 9 core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php \Drupal\Core\Field\FieldStorageDefinitionInterface::getCardinality()
Returns the maximum number of items allowed for the field.
Possible values are positive integers or FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED.
Return value
int The field cardinality.
1 method overrides FieldStorageDefinitionInterface::getCardinality()
- BaseFieldDefinition::getCardinality in core/
lib/ Drupal/ Core/ Field/ BaseFieldDefinition.php - Returns the maximum number of items allowed for the field.
File
- core/
lib/ Drupal/ Core/ Field/ FieldStorageDefinitionInterface.php, line 161
Class
- FieldStorageDefinitionInterface
- Defines an interface for entity field storage definitions.
Namespace
Drupal\Core\FieldCode
public function getCardinality();