You are here

public function EntityExampleBasicController::delete in Examples for Developers 7

Delete a single entity.

Really a convenience function for deleteMultiple().

Overrides EntityExampleBasicControllerInterface::delete

File

entity_example/entity_example.module, line 596
Implements the basic functionality required to create and display an entity.

Class

EntityExampleBasicController
EntityExampleBasicController extends DrupalDefaultEntityController.

Code

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