You are here

public function ResourceDecoratorBase::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/Decorators/ResourceDecoratorBase.php, line 84
Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.

Class

ResourceDecoratorBase
Class ResourceDecoratorBase.

Namespace

Drupal\restful\Plugin\resource\Decorators

Code

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