You are here

public function TableConfig::delete in Data 8

Deletes an entity permanently.

Throws

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

Overrides EntityBase::delete

File

src/Entity/TableConfig.php, line 102

Class

TableConfig
Defines the Data Table entity.

Namespace

Drupal\data\Entity

Code

public function delete() {
  if (Database::getConnection()
    ->schema()
    ->dropTable($this
    ->id())) {
    parent::delete();
  }
}