You are here

public function ResourceFieldCollection::setIdField in RESTful 7.2

Set the resource field that will return the ID.

Parameters

ResourceFieldInterface $id_field: The field to set.

Overrides ResourceFieldCollectionInterface::setIdField

File

src/Plugin/resource/Field/ResourceFieldCollection.php, line 247
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldCollection.

Class

ResourceFieldCollection

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function setIdField($id_field) {
  $this->idField = $id_field;
}