You are here

public function UpdateHookRegistry::getAllInstalledVersions in Drupal 9

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Update/UpdateHookRegistry.php \Drupal\Core\Update\UpdateHookRegistry::getAllInstalledVersions()

Returns the currently installed schema version for all modules.

Return value

int[] Array of modules as the keys and values as the currently installed schema version of corresponding module, or self::SCHEMA_UNINSTALLED if the module is not installed.

File

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

Class

UpdateHookRegistry
Provides module updates versions handling.

Namespace

Drupal\Core\Update

Code

public function getAllInstalledVersions() : array {
  return $this->keyValue
    ->getAll();
}