public FieldStorageConfigInterface::setCardinality($cardinality)
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 79
Class
- FieldStorageConfigInterface
- Provides an interface defining a field storage entity.
Namespace
Drupal\field
Code
public function setCardinality($cardinality);
Please login to continue.