public function ResourceFieldInterface::getCardinality in RESTful 7.2
Gets the cardinality of the wrapped field.
Return value
int The number of potentially returned fields. Reuses field cardinality constants.
3 methods override ResourceFieldInterface::getCardinality()
- ResourceField::getCardinality in src/
Plugin/ resource/ Field/ ResourceField.php - Gets the cardinality of the wrapped field.
- ResourceFieldEntity::getCardinality in src/
Plugin/ resource/ Field/ ResourceFieldEntity.php - Gets the cardinality of the wrapped field.
- ResourceFieldResource::getCardinality in src/
Plugin/ resource/ Field/ ResourceFieldResource.php - Gets the cardinality of the field.
File
- src/
Plugin/ resource/ Field/ ResourceFieldInterface.php, line 251 - Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldInterface.
Class
Namespace
Drupal\restful\Plugin\resource\FieldCode
public function getCardinality();