Error message

You are browsing documentation for examples 7.x-1.x, which is not supported anymore. Read the updated version of this page for examples 4.0.x (the latest version).

function EntityExampleBasicController::delete

Delete a single entity.

Really a convenience function for deleteMultiple().

Parameters

object $entity: The entity to delete.

Overrides EntityExampleBasicControllerInterface::delete

File

entity_example/entity_example.module, line 596

Class

EntityExampleBasicController
EntityExampleBasicController extends DrupalDefaultEntityController.

Code

public function delete ($entity) {
 $this->deleteMultiple (array(
 $entity,
 ));
}