You are here

function google_analytics_counter_update_8004 in Google Analytics Counter 8.3

Issue #3003910: Remove overwrite_statistics configuration.

File

./google_analytics_counter.install, line 181
Update, and uninstall functions for the Google Analytics Counter module.

Code

function google_analytics_counter_update_8004() {
  $config_factory = \Drupal::configFactory();
  $config_factory
    ->getEditable('google_analytics_counter.settings')
    ->clear('general_settings.overwrite_statistics')
    ->save();
}