public FieldStorageConfig::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.
Overrides FieldStorageDefinitionInterface::getCardinality
File
- core/modules/field/src/Entity/FieldStorageConfig.php, line 629
Class
- FieldStorageConfig
- Defines the Field storage configuration entity.
Namespace
Drupal\field\Entity
Code
public function getCardinality() { return $this->cardinality; }
Please login to continue.