public function FieldStorageConfig::getCardinality in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\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
1 call to FieldStorageConfig::getCardinality()
- FieldStorageConfig::isMultiple in core/
modules/ field/ src/ Entity/ FieldStorageConfig.php - Returns whether the field can contain multiple items.
File
- core/
modules/ field/ src/ Entity/ FieldStorageConfig.php, line 633 - Contains \Drupal\field\Entity\FieldStorageConfig.
Class
- FieldStorageConfig
- Defines the Field storage configuration entity.
Namespace
Drupal\field\EntityCode
public function getCardinality() {
return $this->cardinality;
}