Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
}
},
"require": {
"drupal/bootstrap": "^3.23",
"drupal/gin": "^3.0",
"drupal/core": "^8",
"os2forms/os2forms": "^2.6",
"os2forms/os2forms_forloeb": "^1.3",
Expand Down
5 changes: 0 additions & 5 deletions os2forms_forloeb_profile.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ install:
- maestro_webform
- masquerade
- os2web_simplesaml
- rules
- rules_token
- rules_webform
- switch_page_theme
- ultimate_cron

Expand All @@ -119,5 +116,3 @@ install:
themes:
- gin
- claro
- bootstrap
- custom_theme
18 changes: 18 additions & 0 deletions os2forms_forloeb_profile.install
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,24 @@ function os2forms_forloeb_profile_install() {
// We install some menu links, so we have to rebuild the router, to ensure the
// menu links are valid.
\Drupal::service('router.builder')->rebuildIfNeeded();

// set Gin as default theme
$theme_list = [
'claro',
'gin'
];

// Install themes
\Drupal::service('theme_installer')->install($theme_list);

// Get theme manager
$system_theme = \Drupal::configFactory()->getEditable('system.theme');

// Set default and admin themes
$system_theme
->set('default', 'gin')
->set('admin', 'gin')
->save();
}

/**
Expand Down