You are here

function geolocation_test_views_uninstall in Geolocation Field 8

Same name and namespace in other branches
  1. 8.3 tests/modules/geolocation_test_views/geolocation_test_views.install \geolocation_test_views_uninstall()
  2. 8.2 tests/modules/geolocation_test_views/geolocation_test_views.install \geolocation_test_views_uninstall()

Implements hook_uninstall().

File

tests/modules/geolocation_test_views/geolocation_test_views.install, line 22
Geolocation test setup.

Code

function geolocation_test_views_uninstall() {

  /** @var \Drupal\Core\Config\Config $config */
  $config = \Drupal::service('config.factory')
    ->getEditable('geolocation.settings');
  if ($config
    ->get('google_map_api_key') == 'AIzaSyAS0hYgEXBmvArc7_yXiK9lDrZ1O038weU') {
    $config
      ->set('google_map_api_key', '')
      ->save();
  }
}