You are here

public function Resource::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 Resource::index()
CsrfToken::index in src/Plugin/resource/CsrfToken.php
Basic implementation for listing.

File

src/Plugin/resource/Resource.php, line 350
Contains \Drupal\restful\Plugin\resource\Resource.

Class

Resource

Namespace

Drupal\restful\Plugin\resource

Code

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