You are here

public function ResourceFieldInterface::setCardinality in RESTful 7.2

Set the cardinality.

Parameters

int $cardinality: The new cardinality.

3 methods override ResourceFieldInterface::setCardinality()
ResourceField::setCardinality in src/Plugin/resource/Field/ResourceField.php
Set the cardinality.
ResourceFieldEntity::setCardinality in src/Plugin/resource/Field/ResourceFieldEntity.php
Set the cardinality.
ResourceFieldResource::setCardinality in src/Plugin/resource/Field/ResourceFieldResource.php
Set the cardinality.

File

src/Plugin/resource/Field/ResourceFieldInterface.php, line 259
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldInterface.

Class

ResourceFieldInterface

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function setCardinality($cardinality);