function UpdateHooks::modulesInstalled

Implements hook_modules_installed().

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

Attributes

#[Hook('modules_installed')]

File

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

Class

UpdateHooks
Hook implementations for update.

Namespace

Drupal\update\Hook

Code

public function modulesInstalled($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.