You are here

public function CacheDecoratedDataProvider::index in RESTful 7.2

List operation.

Return value

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

Overrides CrudInterface::index

File

src/Plugin/resource/DataProvider/CacheDecoratedDataProvider.php, line 153
Contains \Drupal\restful\Plugin\resource\DataProvider\CacheDecoratedDataProvider.

Class

CacheDecoratedDataProvider
Class CacheDecoratedDataProvider.

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function index() {

  // TODO: This is duplicating the code from DataProvider::index
  $ids = $this
    ->getIndexIds();
  return $this
    ->viewMultiple($ids);
}