public function RestWSEntityResourceController::delete in RESTful Web Services 7
Same name and namespace in other branches
- 7.2 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 183 - RESTful web services module integration for entities.
Class
- RestWSEntityResourceController
- Controller for entity-bases resources.
Code
public function delete($id) {
entity_delete($this->entityType, $id);
}