public function ResourceFieldEntity::setCardinality in RESTful 7.2
Set the cardinality.
Parameters
int $cardinality: The new cardinality.
Overrides ResourceFieldInterface::setCardinality
1 call to ResourceFieldEntity::setCardinality()
- ResourceFieldEntityReference::preprocess in src/
Plugin/ resource/ Field/ ResourceFieldEntityReference.php - Massage the value to set according to the format expected by the wrapper.
File
- src/
Plugin/ resource/ Field/ ResourceFieldEntity.php, line 1085 - Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldEntity
Class
- ResourceFieldEntity
- Class ResourceFieldEntity.
Namespace
Drupal\restful\Plugin\resource\FieldCode
public function setCardinality($cardinality) {
$this->cardinality = $cardinality;
}