Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UpdateHookRegistry.php

function 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 145

Class

UpdateHookRegistry
Provides module updates versions handling.

Namespace

Drupal\Core\Update

Code

public function getInstalledVersion(string $module) : int {
    return $this->keyValue
        ->get($module, self::SCHEMA_UNINSTALLED);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal