You are here

public function RestWSEntityResourceController::delete in RESTful Web Services 7.2

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

Delete an existing resource.

Parameters

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

Overrides RestWSResourceControllerInterface::delete

File

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

Class

RestWSEntityResourceController
Controller for entity-bases resources.

Code

public function delete($id) {
  entity_delete($this->entityType, $id);
}