You are here

public function DataProviderResource::view in RESTful 7.2

Read operation.

Parameters

mixed $identifier: The ID of thing being viewed.

Return value

array An array of data for the thing being viewed.

Overrides CrudInterface::view

File

src/Plugin/resource/DataProvider/DataProviderResource.php, line 104
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 view($identifier) {
  return $this->referencedDataProvider
    ->view($identifier);
}