/**
* {@inheritdoc}
*/
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'
);
$this->cacheBackend->
deleteMultiple(['entity_type_definitions.installed',
$entity_type_id . '.field_storage_definitions.installed'
]);
$this->entityTypeDefinitions = NULL;
return $this;
} /**
* {@inheritdoc}
*/
public function getLastInstalledFieldStorageDefinitions($entity_type_id) { if ($cache =
$this->cacheBackend->
get($entity_type_id . '.field_storage_definitions.installed'
)) { return $cache->data;
}