function UpdateHookRegistry::getAllInstalledVersions

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

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