function UpdateHooks::modulesUninstalled

Same name and namespace in other branches
  1. 11.x core/modules/update/src/Hook/UpdateHooks.php \Drupal\update\Hook\UpdateHooks::modulesUninstalled()

Implements hook_modules_uninstalled().

If modules are uninstalled, we invalidate the information of available updates.

Attributes

#[Hook('modules_uninstalled')]

File

core/modules/update/src/Hook/UpdateHooks.php, line 182

Class

UpdateHooks
Hook implementations for update.

Namespace

Drupal\update\Hook

Code

public function modulesUninstalled($modules) : void {
  // Clear all Update Status module data.
  update_storage_clear();
}

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