You are here

function csc_country_data_uninstall in Country, State and City Fields 8

Implements hook_uninstall().

File

csc_country_data/csc_country_data.install, line 55
Here we are importing country data from csv.

Code

function csc_country_data_uninstall() {
  $current_country_message = \Drupal::entityTypeManager()
    ->getDefinition('countrylist');
  $entity_definition_update_manager = \Drupal::entityDefinitionUpdateManager();
  $original_country = $entity_definition_update_manager
    ->getEntityType('countrylist');
  $entity_definition_update_manager
    ->uninstallEntityType($current_country_message);
  $entity_definition_update_manager
    ->installEntityType($original_country);
}