You are here

function opigno_tour_uninstall in Opigno tour 8

Same name and namespace in other branches
  1. 3.x opigno_tour.install \opigno_tour_uninstall()

Removes migration temporary database table.

File

./opigno_tour.install, line 71
Opigno Tour module install/uninstall functions.

Code

function opigno_tour_uninstall() {

  // Remove module configs.
  $configs = [
    'tour.tour.front',
    'tour.tour.catalogue',
    'tour.tour.achievements',
    'tour.tour.training',
    'tour.tour.training_edit',
  ];
  foreach ($configs as $config) {
    try {
      \Drupal::configFactory()
        ->getEditable($config)
        ->delete();
    } catch (Exception $e) {
      \Drupal::logger('opigno_tour')
        ->error($e
        ->getMessage());
    }
  }
}