diff --git a/recipes/acquia_drupal_starterkit_content_model/recipe.yml b/recipes/acquia_drupal_starterkit_content_model/recipe.yml index fe6ce4804..cddb9c74f 100644 --- a/recipes/acquia_drupal_starterkit_content_model/recipe.yml +++ b/recipes/acquia_drupal_starterkit_content_model/recipe.yml @@ -1,4 +1,4 @@ -name: 'Acquia Drupal Startekit Low-Code' +name: 'Acquia Drupal Startekit Content Model' description: 'An content model provides Article, Event, Page, Person, Place content types.' type: 'Starterkit' recipes: diff --git a/recipes/acquia_drupal_starterkit_headless/recipe.yml b/recipes/acquia_drupal_starterkit_headless/recipe.yml index 269922b9a..8cd78a41a 100644 --- a/recipes/acquia_drupal_starterkit_headless/recipe.yml +++ b/recipes/acquia_drupal_starterkit_headless/recipe.yml @@ -6,3 +6,13 @@ recipes: install: # Contrib - acquia_cms_headless +config: + actions: + project_browser.admin_settings: + simple_config_update: + allowed_projects: + recipes: + - acquia_drupal_starterkit_community + - acquia_drupal_starterkit_content_model + - acquia_drupal_starterkit_headless + - acquia_drupal_starterkit_media_model diff --git a/recipes/acquia_drupal_starterkit_installer/acquia_drupal_starterkit_installer.profile b/recipes/acquia_drupal_starterkit_installer/acquia_drupal_starterkit_installer.profile index be3dccb9b..ad5155631 100644 --- a/recipes/acquia_drupal_starterkit_installer/acquia_drupal_starterkit_installer.profile +++ b/recipes/acquia_drupal_starterkit_installer/acquia_drupal_starterkit_installer.profile @@ -9,7 +9,8 @@ use Drupal\Core\Installer\Form\SiteConfigureForm; use Drupal\Core\Installer\Form\SiteSettingsForm; use Drupal\Core\Recipe\Recipe; use Drupal\Core\Recipe\RecipeRunner; -use Drupal\acquia_drupal_starterkit_installer\Form\RecipesForm; +use Drupal\acquia_drupal_starterkit_installer\Form\RecipesStarterkitForm; +use Drupal\acquia_drupal_starterkit_installer\Form\RecipesAddOnForm; use Drupal\acquia_drupal_starterkit_installer\Form\SiteNameForm; /** @@ -46,12 +47,19 @@ function acquia_drupal_starterkit_installer_install_tasks_alter(array &$tasks, a $tasks_after = array_slice($tasks, $key, NULL, TRUE); $tasks = $tasks_before + $additions + $tasks_after; }; + $insert_before('install_settings_form', [ 'acquia_drupal_starterkit_installer_choose_recipes' => [ 'display_name' => t('Choose add-ons'), 'type' => 'form', 'run' => array_key_exists('recipes', $install_state['parameters']) ? INSTALL_TASK_SKIP : INSTALL_TASK_RUN_IF_REACHED, - 'function' => RecipesForm::class, + 'function' => RecipesStarterkitForm::class, + ], + 'acquia_drupal_starterkit_installer_addons' => [ + 'display_name' => t('Extend Acquia Drupal Starter Kit with Add-ons'), + 'type' => 'form', + 'run' => array_key_exists('recipes_starterkit_addons', $install_state['parameters']) ? INSTALL_TASK_SKIP : INSTALL_TASK_RUN_IF_REACHED, + 'function' => RecipesAddOnForm::class, ], 'acquia_drupal_starterkit_installer_site_name_form' => [ 'display_name' => t('Name your site'), diff --git a/recipes/acquia_drupal_starterkit_installer/css/add-ons.css b/recipes/acquia_drupal_starterkit_installer/css/add-ons.css index a966205e2..ed13271b6 100644 --- a/recipes/acquia_drupal_starterkit_installer/css/add-ons.css +++ b/recipes/acquia_drupal_starterkit_installer/css/add-ons.css @@ -18,6 +18,15 @@ word-wrap: normal; } +#edit-add-ons [type="radio"] { + position: absolute; + overflow: hidden; + clip: rect(1px, 1px, 1px, 1px); + width: 1px; + height: 1px; + word-wrap: normal; +} + #edit-add-ons label { display: inline-block; color: #39353e; diff --git a/recipes/acquia_drupal_starterkit_installer/src/Form/RecipesAddOnForm.php b/recipes/acquia_drupal_starterkit_installer/src/Form/RecipesAddOnForm.php new file mode 100644 index 000000000..2fd25c284 --- /dev/null +++ b/recipes/acquia_drupal_starterkit_installer/src/Form/RecipesAddOnForm.php @@ -0,0 +1,78 @@ +t('Extend Acquia Drupal Starter Kit with Add-ons'); + + $form['help'] = [ + '#prefix' => '
', + '#markup' => $this->t('You can change your mind later.'), + '#suffix' => '
', + ]; + $options = [ + 'acquia_drupal_starterkit_content_model' => $this->t('Acquia Drupal Starterkit Content Model'), + 'acquia_drupal_starterkit_media_model' => $this->t('Acquia Drupal Starterkit Media Model'), + ]; + + $form['add_ons'] = [ + '#prefix' => '