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
Namespace
Drupal\restful\Plugin\resource\FieldCode
public function setIdField($id_field) {
$this->idField = $id_field;
}