function SqlContentEntityStorageSchema::deleteEntitySchemaData
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::deleteEntitySchemaData()
- 10 core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::deleteEntitySchemaData()
- 11.x 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 1255
Class
- SqlContentEntityStorageSchema
- Defines a schema handler that supports revisionable, translatable entities.
Namespace
Drupal\Core\Entity\SqlCode
protected function deleteEntitySchemaData(EntityTypeInterface $entity_type) {
$this->installedStorageSchema()
->delete($entity_type->id() . '.entity_schema_data');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.