function EntityExampleBasicController::delete

Delete a single entity.

Really a convenience function for deleteMultiple().

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,
    ));
}