You are here

function statistics_update_8002 in Drupal 8

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

File

core/modules/statistics/statistics.install, line 78
Install and update functions for the Statistics module.

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();
}