You are here

public function ResourceField::setCardinality in RESTful 7.2

Set the cardinality.

Parameters

int $cardinality: The new cardinality.

Overrides ResourceFieldInterface::setCardinality

File

src/Plugin/resource/Field/ResourceField.php, line 203
Contains \Drupal\restful\Plugin\resource\ResourceField.

Class

ResourceField

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function setCardinality($cardinality) {
  $this->cardinality = $cardinality;
}