function statistics_update_8002

Disable the Statistics module if the node module is not enabled.

File

core/modules/statistics/statistics.install, line 78

Code

function statistics_update_8002() {
    // Set the new configuration setting for max age to the initial value.
    \Drupal::configFactory()->getEditable('statistics.settings')
        ->set('display_max_age', 3600)
        ->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.