diff --git a/project_template/web/profiles/drupal_cms_installer/drupal_cms_installer.profile b/project_template/web/profiles/drupal_cms_installer/drupal_cms_installer.profile index e40d9c5faa01ad6e4fa10bd74057fbfaf1f35590..9b38045f24044e580a71c2c1e7c6c24118220fa9 100644 --- a/project_template/web/profiles/drupal_cms_installer/drupal_cms_installer.profile +++ b/project_template/web/profiles/drupal_cms_installer/drupal_cms_installer.profile @@ -3,6 +3,7 @@ declare(strict_types=1); use Drupal\Core\Form\FormStateInterface; +use Drupal\Core\Site\Settings; use Drupal\RecipeKit\Installer\Hooks; use Drupal\RecipeKit\Installer\Messenger; @@ -25,6 +26,16 @@ function drupal_cms_installer_install_tasks(): array { */ function drupal_cms_installer_install_tasks_alter(array &$tasks, array $install_state): void { Hooks::installTasksAlter($tasks, $install_state); + + // The recipe kit doesn't change the title of the batch job that applies all + // the recipes, so to override it, we use core's custom string overrides. + // We can't use the passed-in $install_state here, because it isn't passed by + // reference. + $langcode = $GLOBALS['install_state']['parameters']['langcode']; + $settings = Settings::getAll(); + // @see install_profile_modules() + $settings["locale_custom_strings_$langcode"]['']['Installing @drupal'] = 'Setting up your site'; + new Settings($settings); } /** diff --git a/project_template/web/profiles/drupal_cms_installer/theme/drupal_cms_installer_theme.theme b/project_template/web/profiles/drupal_cms_installer/theme/drupal_cms_installer_theme.theme index 4ca6b3dfa4454d1c6dc2bbdfdb16a00348e012a0..84a3302a40ab638b2dcc1ab24b170b22ca8040a1 100644 --- a/project_template/web/profiles/drupal_cms_installer/theme/drupal_cms_installer_theme.theme +++ b/project_template/web/profiles/drupal_cms_installer/theme/drupal_cms_installer_theme.theme @@ -68,6 +68,7 @@ function drupal_cms_installer_theme_form_install_settings_form_alter(array &$for '#suffix' => '</p>', '#weight' => -50, ]; + $form['driver']['#type'] = 'select'; } /** @@ -97,4 +98,5 @@ function drupal_cms_installer_theme_form_install_configure_form_alter(array &$fo '#suffix' => '</div>', ]; } + $form['actions']['submit']['#value'] = t('Finish'); }