You are here

public function RestWSFormatInterface::viewResource in RESTful Web Services 7

Same name and namespace in other branches
  1. 7.2 restws.formats.inc \RestWSFormatInterface::viewResource()

Gets the representation of a resource.

Parameters

RestWSResourceControllerInterface $resourceController: The controller used to retrieve the resource.

int|string $id: The id of the resource that should be returned.

Return value

string The representation of the resource.

1 method overrides RestWSFormatInterface::viewResource()
RestWSBaseFormat::viewResource in ./restws.formats.inc
Gets the representation of a resource.

File

./restws.formats.inc, line 24
RESTful web services module formats.

Class

RestWSFormatInterface
Interface implemented by formatter implementations for the http client.

Code

public function viewResource($resourceController, $id);