Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

Commit

Permalink
Issue #3153885: Active themes reverts to Claro and Bartik when instal…
Browse files Browse the repository at this point in the history
…ling a site from an existing config
  • Loading branch information
phenaproxima committed Feb 1, 2021
1 parent 49539c6 commit b948f84
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lightning.profile
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,18 @@ use Drupal\user\RoleInterface;
/**
* Implements hook_install_tasks().
*/
function lightning_install_tasks() {
function lightning_install_tasks(array &$install_state) {
$tasks = [];

$tasks['lightning_set_front_page'] = [];
$tasks['lightning_grant_shortcut_access'] = [];
$tasks['lightning_set_default_theme'] = [];
$tasks['lightning_set_logo'] = [];
$tasks['lightning_alter_frontpage_view'] = [];

// All of these tasks modify configuration, so don't do any of them if
// we're installing from existing config.
if (empty($install_state['config_install_path'])) {
$tasks['lightning_set_front_page'] = [];
$tasks['lightning_grant_shortcut_access'] = [];
$tasks['lightning_set_default_theme'] = [];
$tasks['lightning_set_logo'] = [];
$tasks['lightning_alter_frontpage_view'] = [];
}
return $tasks;
}

Expand Down

0 comments on commit b948f84

Please sign in to comment.