You are here

public function ResourceFieldResource::compoundDocumentId in RESTful 7.2

Fetches the embedded identifier(s) for the current resource field, if any.

Parameters

DataInterpreterInterface $interpreter: The data interpreter to get the compound ID.

Return value

string|string[] An identifier or an array of identifiers for cardinality > 1. NULL if there is no identifier to be found.

Overrides ResourceFieldInterface::compoundDocumentId

1 call to ResourceFieldResource::compoundDocumentId()
ResourceFieldResource::getResourceId in src/Plugin/resource/Field/ResourceFieldResource.php
Gets the ID on the referenced resource.

File

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

Class

ResourceFieldResource

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function compoundDocumentId(DataInterpreterInterface $interpreter) {
  return $this->decorated
    ->compoundDocumentId($interpreter);
}