You are here

protected function GenerateConfigurationUpdateCommand::getLastUpdate in Update helper 8

Get last update number.

Parameters

string $module: Module name where update hook will placed.

Return value

array|bool|mixed Returns next update hook number.

2 calls to GenerateConfigurationUpdateCommand::getLastUpdate()
GenerateConfigurationUpdateCommand::execute in src/Command/GenerateConfigurationUpdateCommand.php
GenerateConfigurationUpdateCommand::interact in src/Command/GenerateConfigurationUpdateCommand.php

File

src/Command/GenerateConfigurationUpdateCommand.php, line 273

Class

GenerateConfigurationUpdateCommand
Generate configuration update command class.

Namespace

Drupal\update_helper\Command

Code

protected function getLastUpdate($module) {
  $this->site
    ->loadLegacyFile('/core/includes/schema.inc');
  return drupal_get_installed_schema_version($module);
}