You are here

public function ResourceFieldResource::setCardinality in RESTful 7.2

Set the cardinality.

Parameters

int $cardinality: The new cardinality.

Overrides ResourceFieldInterface::setCardinality

File

src/Plugin/resource/Field/ResourceFieldResource.php, line 126
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldResource.

Class

ResourceFieldResource

Namespace

Drupal\restful\Plugin\resource\Field

Code

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