function UpdateHookRegistry::deleteInstalledVersion

Same name in other branches
  1. 9 core/lib/Drupal/Core/Update/UpdateHookRegistry.php \Drupal\Core\Update\UpdateHookRegistry::deleteInstalledVersion()
  2. 10 core/lib/Drupal/Core/Update/UpdateHookRegistry.php \Drupal\Core\Update\UpdateHookRegistry::deleteInstalledVersion()

Deletes the installed version information for the module.

Parameters

string $module: The module name to delete.

File

core/lib/Drupal/Core/Update/UpdateHookRegistry.php, line 172

Class

UpdateHookRegistry
Provides module updates versions handling.

Namespace

Drupal\Core\Update

Code

public function deleteInstalledVersion(string $module) : void {
    $this->keyValue
        ->delete($module);
    $this->equivalentUpdates
        ->delete($module);
}

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