protected function SqlContentEntityStorageSchema::deleteEntitySchemaData

protected SqlContentEntityStorageSchema::deleteEntitySchemaData(EntityTypeInterface $entity_type)

Deletes schema data for the given entity type definition.

Parameters

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

File

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

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');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Sql!SqlContentEntityStorageSchema.php/function/SqlContentEntityStorageSchema::deleteEntitySchemaData/8.1.x