You are here

protected function SqlContentEntityStorageSchema::deleteEntitySchemaData in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::deleteEntitySchemaData()

Deletes schema data for the given entity type definition.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

1 call to SqlContentEntityStorageSchema::deleteEntitySchemaData()
SqlContentEntityStorageSchema::onEntityTypeDelete in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
Reacts to the deletion of the entity type.

File

core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 1267

Class

SqlContentEntityStorageSchema
Defines a schema handler that supports revisionable, translatable entities.

Namespace

Drupal\Core\Entity\Sql

Code

protected function deleteEntitySchemaData(EntityTypeInterface $entity_type) {
  $this
    ->installedStorageSchema()
    ->delete($entity_type
    ->id() . '.entity_schema_data');
}