You are here

public function DataProviderResource::viewMultiple in RESTful 7.2

Read operation.

Parameters

array $identifiers: The array of IDs of things being viewed.

Return value

array An array of structured data for the things being viewed.

Overrides CrudInterface::viewMultiple

File

src/Plugin/resource/DataProvider/DataProviderResource.php, line 111
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderResource.

Class

DataProviderResource
This data provider creates a resource and uses it to access the data.

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function viewMultiple(array $identifiers) {
  return $this->referencedDataProvider
    ->viewMultiple($identifiers);
}