You are here

public function EventType::delete in Booking and Availability Management Tools for Drupal 8

Deletes an entity permanently.

Throws

\Drupal\Core\Entity\EntityStorageException In case of failures an exception is thrown.

Overrides EntityBase::delete

File

modules/bat_event/src/Entity/EventType.php, line 150
Contains \Drupal\bat_event\Entity\EventType.

Class

EventType
Defines the Event type configuration entity.

Namespace

Drupal\bat_event\Entity

Code

public function delete() {

  // Delete all tables necessary for this Event Type.
  bat_event_delete_event_type_schema($this
    ->id());
  parent::delete();
}