FieldStorageConfig::getCardinality

public 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

File

core/modules/field/src/Entity/FieldStorageConfig.php, line 629

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

public function getCardinality() {
  return $this->cardinality;
}
doc_Drupal
2016-10-29 09:12:17
Comments
Leave a Comment

Please login to continue.