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
Namespace
Drupal\restful\Plugin\resourceCode
public function discover($path = NULL) {
$this
->preflight($path);
return $this
->getDataProvider()
->discover($path);
}