You are here

public function VarbaseUpdateHelperCommands::varbaseApplyUpdate in Varbase Core 8.6

Same name and namespace in other branches
  1. 8.8 modules/varbase_update_helper/src/Commands/VarbaseUpdateHelperCommands.php \Drupal\varbase_update_helper\Commands\VarbaseUpdateHelperCommands::varbaseApplyUpdate()
  2. 8.7 modules/varbase_update_helper/src/Commands/VarbaseUpdateHelperCommands.php \Drupal\varbase_update_helper\Commands\VarbaseUpdateHelperCommands::varbaseApplyUpdate()
  3. 9.0.x modules/varbase_update_helper/src/Commands/VarbaseUpdateHelperCommands.php \Drupal\varbase_update_helper\Commands\VarbaseUpdateHelperCommands::varbaseApplyUpdate()

Applying an (optional) update hook (function) from module install file.

Apply Varbase updates by invoking the related update hooks.

@option force

@command varbase_update_helper:varbase-apply-update @aliases varbase-up

Parameters

string $module: Module name.

string $update_hook: Update Hook.

array $options: Options.

File

modules/varbase_update_helper/src/Commands/VarbaseUpdateHelperCommands.php, line 57

Class

VarbaseUpdateHelperCommands
Class VarbaseUpdateHelperCommands.

Namespace

Drupal\varbase_update_helper\Commands

Code

public function varbaseApplyUpdate($module = '', $update_hook = '', array $options = [
  'force' => FALSE,
]) {
  $force = $options['force'];
  $this->commandHelper
    ->varbaseApplyUpdate($module, $update_hook, $force);
}