public function CivicrmEntity::delete in CiviCRM Entity 8.3
Deletes an entity permanently.
Throws
\Drupal\Core\Entity\EntityStorageException In case of failures an exception is thrown.
Overrides EntityBase::delete
File
- src/
Entity/ CivicrmEntity.php, line 58
Class
- CivicrmEntity
- Entity class for CiviCRM entities.
Namespace
Drupal\civicrm_entity\EntityCode
public function delete() {
// Set ::drupal_crud to indicate delete is coming from Drupal.
try {
$this->drupal_crud = TRUE;
parent::delete();
} finally {
$this->drupal_crud = FALSE;
}
}