public 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.
File
- core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php, line 165
Class
- FieldStorageDefinitionInterface
- Defines an interface for entity field storage definitions.
Namespace
Drupal\Core\Field
Code
public function getCardinality();
Please login to continue.