function update_uninstall

Same name in other branches
  1. 7.x modules/update/update.install \update_uninstall()
  2. 9 core/modules/update/update.install \update_uninstall()
  3. 10 core/modules/update/update.install \update_uninstall()
  4. 11.x core/modules/update/update.install \update_uninstall()

Implements hook_uninstall().

File

core/modules/update/update.install, line 86

Code

function update_uninstall() {
    \Drupal::state()->delete('update.last_check');
    \Drupal::state()->delete('update.last_email_notification');
    $queue = \Drupal::queue('update_fetch_tasks');
    $queue->deleteQueue();
}

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