diff --git a/core/modules/update/update.install b/core/modules/update/update.install index 505b1ca4efa50fc20c0e8d7080af0af857aedca2..99ca307bce7ac796333f16780eb32f730538111d 100644 --- a/core/modules/update/update.install +++ b/core/modules/update/update.install @@ -68,9 +68,8 @@ function update_install() { * Implements hook_uninstall(). */ function update_uninstall() { - // @todo D8: Convert to new state storage. - variable_del('update_last_check'); - variable_del('update_last_email_notification'); + \Drupal::state()->delete('update.last_check'); + \Drupal::state()->delete('update.last_email_notification'); $queue = \Drupal::queue('update_fetch_tasks'); $queue->deleteQueue();