function UpdateHookRegistry::getInstalledVersion
Same name in other branches
- 10 core/lib/Drupal/Core/Update/UpdateHookRegistry.php \Drupal\Core\Update\UpdateHookRegistry::getInstalledVersion()
- 11.x 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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.