Skip to content

Commit

Permalink
Try something else pt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpott committed Jan 10, 2024
1 parent 1036d3d commit b0fca79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Installer/Form/ModuleConfigureForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ public function submitForm(array &$form, FormStateInterface $form_state): void {
];

if (InstallerKernel::installationAttempted()) {
$GLOBALS['install_state']['thunder_install_batch'] = $batch;
$buildInfo = $form_state->getBuildInfo();
$buildInfo['args'][0]['thunder_install_batch'] = $batch;
$form_state->setBuildInfo($buildInfo);
}
else {
batch_set($batch);
Expand Down
1 change: 1 addition & 0 deletions thunder.profile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ function thunder_install_tasks(array &$install_state): array {
$tasks['thunder_module_install'] = [
'display_name' => t('Install additional modules'),
'type' => 'batch',
'run' => empty($install_state['thunder_install_batch']) ? INSTALL_TASK_SKIP : INSTALL_TASK_RUN_IF_NOT_COMPLETED,
];
}
$tasks['thunder_finish_installation'] = [
Expand Down

0 comments on commit b0fca79

Please sign in to comment.