public function VarbaseUpdateHelperCommands::varbaseApplyUpdate in Varbase Core 8.7
Same name and namespace in other branches
- 8.8 modules/varbase_update_helper/src/Commands/VarbaseUpdateHelperCommands.php \Drupal\varbase_update_helper\Commands\VarbaseUpdateHelperCommands::varbaseApplyUpdate()
- 8.6 modules/varbase_update_helper/src/Commands/VarbaseUpdateHelperCommands.php \Drupal\varbase_update_helper\Commands\VarbaseUpdateHelperCommands::varbaseApplyUpdate()
- 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\CommandsCode
public function varbaseApplyUpdate($module = '', $update_hook = '', array $options = [
'force' => FALSE,
]) {
$force = $options['force'];
$this->commandHelper
->varbaseApplyUpdate($module, $update_hook, $force);
}