public function ResourceField::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.
Overrides ResourceFieldInterface::getCardinality
File
- src/
Plugin/ resource/ Field/ ResourceField.php, line 195 - Contains \Drupal\restful\Plugin\resource\ResourceField.
Class
Namespace
Drupal\restful\Plugin\resource\FieldCode
public function getCardinality() {
// Default to cardinality of 1.
return 1;
}