You are here

public function Resource::discover in RESTful 7.2

Discovery controller callback.

Parameters

string $path: The requested path.

Return value

array The resource field collection with the discovery information.

Overrides ResourceInterface::discover

File

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

Class

Resource

Namespace

Drupal\restful\Plugin\resource

Code

public function discover($path = NULL) {
  $this
    ->preflight($path);
  return $this
    ->getDataProvider()
    ->discover($path);
}