You are here

public function ModuleCommands::getSchemaVersion in Helper 8

Gets the schema version for a module.

@command module:schema-version:get @aliases msvg @validate-module @usage drush module:schema-version:get system Displays the current schema version for the system module.

Parameters

string $module: The module name, for example "system".

1 call to ModuleCommands::getSchemaVersion()
ModuleCommands::interactSchemaVersion in src/Commands/ModuleCommands.php
Sets the schema version for module.

File

src/Commands/ModuleCommands.php, line 45

Class

ModuleCommands
Drush commands for working with module schemas.

Namespace

Drupal\helper\Commands

Code

public function getSchemaVersion($module) {
  return (string) drupal_get_installed_schema_version($module);
}