You are here

public function ServicesClientUUIDResourceController::delete in Services Client 7.2

Implements ServicesResourceControllerInterface::delete().

Overrides ServicesEntityResourceController::delete

File

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

Class

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

Code

public function delete($entity_type, $entity_id) {

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