You are here

public function DataProviderResource::index in RESTful 7.2

List operation.

Return value

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

Overrides DataProvider::index

File

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