function statistics_update_8002 in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/statistics/statistics.install \statistics_update_8002()
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();
}