You are here

public function CacheDecoratedResource::index in RESTful 7.2

Basic implementation for listing.

Parameters

string $path: The resource path.

Return value

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

Overrides ResourceDecoratorBase::index

File

src/Plugin/resource/Decorators/CacheDecoratedResource.php, line 200
Contains \Drupal\restful\Plugin\resource\Decorators\CacheDecoratedResource

Class

CacheDecoratedResource

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

public function index($path) {

  // TODO: This is duplicating the code from Resource::index
  return $this
    ->getDataProvider()
    ->index();
}