FieldStorageDefinitionInterface::getCardinality

public FieldStorageDefinitionInterface::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.

File

core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php, line 165

Class

FieldStorageDefinitionInterface
Defines an interface for entity field storage definitions.

Namespace

Drupal\Core\Field

Code

public function getCardinality();
doc_Drupal
2016-10-29 09:12:43
Comments
Leave a Comment

Please login to continue.