Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#72] Always install demo content #204

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ our [Github issue queue](https://github.com/apigee/apigee-devportal-kickstart-dr
## Known issues

* Using `drush si` to install the site with Apigee Edge credentials is not working. See [#109](https://github.com/apigee/apigee-devportal-kickstart-drupal/issues/109) for details.
* When "Enable demo content" is not selected during installation, associated custom blocks are still placed. See [#72](https://github.com/apigee/apigee-devportal-kickstart-drupal/issues/72) for details.

## Contribute

Expand Down
15 changes: 10 additions & 5 deletions apigee_devportal_kickstart.profile
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@ use Drupal\Core\Messenger\MessengerInterface;
*/
function apigee_devportal_kickstart_install_tasks(&$install_state) {
$tasks = [
DemoInstallForm::class => [
'display_name' => t('Install demo content'),
'type' => 'form',
],
'apigee_devportal_kickstart_theme_setup' => [
'display_name' => t('Install theme'),
'display' => FALSE,
],
];
Expand Down Expand Up @@ -178,6 +173,16 @@ function apigee_devportal_kickstart_theme_setup(array &$install_state) {
->getEditable('node.settings')
->set('use_admin_theme', TRUE)
->save(TRUE);

// Install demo content.
\Drupal::service('module_installer')
->install(['apigee_kickstart_content']);

// Set the front page to node 1.
\Drupal::configFactory()
->getEditable('system.site')
->set('page.front', '/node/1')
->save();
}

/**
Expand Down
125 changes: 0 additions & 125 deletions src/Installer/Form/DemoInstallForm.php

This file was deleted.