public function UpdateHookRegistry::getInstalledVersion in Drupal 10
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Update/UpdateHookRegistry.php \Drupal\Core\Update\UpdateHookRegistry::getInstalledVersion()
Returns the currently installed schema version for a module.
Parameters
string $module: A module name.
Return value
int The currently installed schema version, or self::SCHEMA_UNINSTALLED if the module is not installed.
File
- core/
lib/ Drupal/ Core/ Update/ UpdateHookRegistry.php, line 122
Class
- UpdateHookRegistry
- Provides module updates versions handling.
Namespace
Drupal\Core\UpdateCode
public function getInstalledVersion(string $module) : int {
return $this->keyValue
->get($module, self::SCHEMA_UNINSTALLED);
}