function UpdateExtensionHooks::extensionsChanged

Same name and namespace in other branches
  1. main core/modules/update/src/Hook/UpdateExtensionHooks.php \Drupal\update\Hook\UpdateExtensionHooks::extensionsChanged()

Implements hook_themes_installed().

Implements hook_themes_uninstalled().

Implements hook_modules_installed().

Implements hook_modules_uninstalled().

If extensions are installed or uninstalled, we invalidate the information of available updates.

Attributes

#[Hook('themes_installed')] #[Hook('themes_uninstalled')] #[Hook('modules_installed')] #[Hook('modules_uninstalled')]

File

core/modules/update/src/Hook/UpdateExtensionHooks.php, line 29

Class

UpdateExtensionHooks
Hook implementations for update.

Namespace

Drupal\update\Hook

Code

public function extensionsChanged($themes) : void {
  // Clear all Update Status module data.
  $this->updateManager
    ->reset();
}

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