function BaseFieldDefinition::isMultiple
Same name in other branches
- 9 core/lib/Drupal/Core/Field/BaseFieldDefinition.php \Drupal\Core\Field\BaseFieldDefinition::isMultiple()
- 8.9.x core/lib/Drupal/Core/Field/BaseFieldDefinition.php \Drupal\Core\Field\BaseFieldDefinition::isMultiple()
- 11.x core/lib/Drupal/Core/Field/BaseFieldDefinition.php \Drupal\Core\Field\BaseFieldDefinition::isMultiple()
Overrides FieldStorageDefinitionInterface::isMultiple
2 calls to BaseFieldDefinition::isMultiple()
- BaseFieldDefinition::isRevisionable in core/
lib/ Drupal/ Core/ Field/ BaseFieldDefinition.php - Returns whether the field storage is revisionable.
- BaseFieldDefinition::setInitialValue in core/
lib/ Drupal/ Core/ Field/ BaseFieldDefinition.php - Sets an initial value for the field.
File
-
core/
lib/ Drupal/ Core/ Field/ BaseFieldDefinition.php, line 286
Class
- BaseFieldDefinition
- A class for defining entity fields.
Namespace
Drupal\Core\FieldCode
public function isMultiple() {
$cardinality = $this->getCardinality();
return $cardinality == static::CARDINALITY_UNLIMITED || $cardinality > 1;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.