UpdateHookRegistry
class UpdateHookRegistry (View source)
Provides module updates versions handling.
Constants
| SCHEMA_UNINSTALLED |
Indicates that a module has not been installed yet. |
Properties
| protected string[] | $enabledModules | A list of enabled modules. |
|
| protected KeyValueStoreInterface | $keyValue | The key value storage. |
|
| protected int[][] | $allAvailableSchemaVersions | A static cache of schema currentVersions per module. |
Methods
Constructs a new UpdateRegistry.
Returns an array of available schema versions for a module.
Returns the currently installed schema version for a module.
Updates the installed version information for a module.
Deletes the installed version information for the module.
Returns the currently installed schema version for all modules.
Details
__construct(array $enabled_modules, KeyValueStoreInterface $key_value)
Constructs a new UpdateRegistry.
array
getAvailableUpdates(string $module)
Returns an array of available schema versions for a module.
int
getInstalledVersion(string $module)
Returns the currently installed schema version for a module.
UpdateHookRegistry
setInstalledVersion(string $module, int $version)
Updates the installed version information for a module.
void
deleteInstalledVersion(string $module)
Deletes the installed version information for the module.
array
getAllInstalledVersions()
Returns the currently installed schema version for all modules.