function UpdateHookRegistry::deleteInstalledVersion

Same name in other branches
  1. 10 core/lib/Drupal/Core/Update/UpdateHookRegistry.php \Drupal\Core\Update\UpdateHookRegistry::deleteInstalledVersion()
  2. 11.x 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 148

Class

UpdateHookRegistry
Provides module updates versions handling.

Namespace

Drupal\Core\Update

Code

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

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