function geolocation_google_maps_demo_uninstall in Geolocation Field 8.3
Same name and namespace in other branches
- 8.2 modules/geolocation_google_maps/modules/geolocation_google_maps_demo/geolocation_google_maps_demo.install \geolocation_google_maps_demo_uninstall()
Implements hook_uninstall().
File
- modules/
geolocation_google_maps/ modules/ geolocation_google_maps_demo/ geolocation_google_maps_demo.install, line 22 - Geolocation demo setup.
Code
function geolocation_google_maps_demo_uninstall() {
/** @var \Drupal\Core\Config\Config $config */
$config = \Drupal::service('config.factory')
->getEditable('geolocation_google_maps.settings');
if ($config
->get('google_map_api_key') == 'AIzaSyChy7jQvcJpTpIiupQhq4wacdVzdum3hvc') {
$config
->set('google_map_api_key', '')
->save();
}
}