You are here

public function ResourceDecoratorBase::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 ResourceInterface::index

1 method overrides ResourceDecoratorBase::index()
CacheDecoratedResource::index in src/Plugin/resource/Decorators/CacheDecoratedResource.php
Basic implementation for listing.

File

src/Plugin/resource/Decorators/ResourceDecoratorBase.php, line 170
Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.

Class

ResourceDecoratorBase
Class ResourceDecoratorBase.

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

public function index($path) {
  return $this->subject
    ->index($path);
}