You are here

public function ServicesResourceControllerInterface::retrieve in Services Entity API 7.2

Returns an existing resource.

Parameters

string $entity_type: The type of the resource that should be returned.

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

array $fields (optional): The fields for the resource that should be returned.

int $revision (optional): The revision of the resource that should be returned. If omitted, the current revision will be returned.

Return value

The internal representation of the resource.

1 method overrides ServicesResourceControllerInterface::retrieve()
ServicesEntityResourceController::retrieve in plugins/services_entity_resource.inc
Implements ServicesResourceControllerInterface::retrieve().

File

plugins/services_entity_interface.inc, line 68
Services Entity module integration for entities.

Class

ServicesResourceControllerInterface
Specifies CRUD and access methods for resources.

Code

public function retrieve($entity_type, $entity_id, $fields, $revision);