public function FieldStorageConfigInterface::setCardinality in Drupal 10
Same name and namespace in other branches
- 8 core/modules/field/src/FieldStorageConfigInterface.php \Drupal\field\FieldStorageConfigInterface::setCardinality()
- 9 core/modules/field/src/FieldStorageConfigInterface.php \Drupal\field\FieldStorageConfigInterface::setCardinality()
Sets the maximum number of items allowed for the field.
Parameters
int $cardinality: The cardinality value.
Return value
$this
File
- core/
modules/ field/ src/ FieldStorageConfigInterface.php, line 71
Class
- FieldStorageConfigInterface
- Provides an interface defining a field storage entity.
Namespace
Drupal\fieldCode
public function setCardinality($cardinality);