public function FieldStorageConfig::isMultiple in Drupal 8
Same name and namespace in other branches
- 9 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::isMultiple()
Returns whether the field can contain multiple items.
Return value
bool TRUE if the field can contain multiple items, FALSE otherwise.
Overrides FieldStorageDefinitionInterface::isMultiple
File
- core/
modules/ field/ src/ Entity/ FieldStorageConfig.php, line 671
Class
- FieldStorageConfig
- Defines the Field storage configuration entity.
Namespace
Drupal\field\EntityCode
public function isMultiple() {
$cardinality = $this
->getCardinality();
return $cardinality == FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED || $cardinality > 1;
}