You are here

public function RestWSEntityResourceController::read in RESTful Web Services 7

Same name and namespace in other branches
  1. 7.2 restws.entity.inc \RestWSEntityResourceController::read()

Returns an existing resource.

Parameters

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

Return value

The internal representation of the resource.

Overrides RestWSResourceControllerInterface::read

File

./restws.entity.inc, line 110
RESTful web services module integration for entities.

Class

RestWSEntityResourceController
Controller for entity-bases resources.

Code

public function read($id) {
  return $this
    ->wrapper($id)
    ->value();
}