public EntityLastInstalledSchemaRepository::deleteLastInstalledDefinition($entity_type_id)
Deletes the entity type definition from the application state.
string $entity_type_id: The entity type definition identifier.
$this
Overrides EntityLastInstalledSchemaRepositoryInterface::deleteLastInstalledDefinition
public function deleteLastInstalledDefinition($entity_type_id) { $this->keyValueFactory->get('entity.definitions.installed')->delete($entity_type_id . '.entity_type'); // Clean up field storage definitions as well. Even if the entity type // isn't currently fieldable, there might be legacy definitions or an // empty array stored from when it was. $this->keyValueFactory->get('entity.definitions.installed')->delete($entity_type_id . '.field_storage_definitions'); return $this; }
© 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!EntityLastInstalledSchemaRepository.php/function/EntityLastInstalledSchemaRepository::deleteLastInstalledDefinition/8.1.x