You are here

public function ServicesClientUUIDResourceController::retrieve in Services Client 7.2

Implements ServicesResourceControllerInterface::retrieve().

Overrides ServicesEntityResourceController::retrieve

File

services_client_services/includes/ServicesClientUUIDResourceController.inc, line 49
Custom controller to allow handling requests with UUIDs.

Class

ServicesClientUUIDResourceController
@file Custom controller to allow handling requests with UUIDs.

Code

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

  // Retrieve local entity id.
  $entity_id = $this
    ->normalizeEntityId($entity_type, $entity_id);
  if (empty($entity_id)) {
    services_error('Entity or revision not found', 404);
  }
  return parent::retrieve($entity_type, $entity_id, $fields, $revision);
}