Skip to content
Snippets Groups Projects
Commit e8250a39 authored by Michael Stenta's avatar Michael Stenta
Browse files

Issue #3309198: Allow users to override Gin theme settings

parent f3e98058
Branches
Tags
No related merge requests found
......@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Issue #3306227: Dispatch events for asset presave, insert, update, delete](https://www.drupal.org/project/farm/issues/3306227)
- [Issue #3306344: Allow views exposed filters to be collapsed](https://www.drupal.org/project/farm/issues/3306344)
- [Issue #3309234: Add PHPStan to test and delivery workflow](https://www.drupal.org/project/farm/issues/3309234)
- [Issue #3309198: Allow users to override Gin theme settings](https://www.drupal.org/project/farm/issues/3309198)
### Changed
......
......@@ -33,6 +33,9 @@ function farm_ui_theme_install() {
$gin_settings->set('favicon.use_default', FALSE);
$gin_settings->set('favicon.path', $path . '/favicon.ico');
// Users can override Gin settings.
$gin_settings->set('show_user_theme_settings', TRUE);
// Save Gin settings.
$gin_settings->save();
......@@ -94,3 +97,12 @@ function farm_ui_theme_update_9000(&$sandbox) {
$gin_settings->clear('icon_path');
$gin_settings->save();
}
/**
* Allow users to override Gin settings.
*/
function farm_ui_theme_update_9001(&$sandbox) {
$gin_settings = \Drupal::configFactory()->getEditable('gin.settings');
$gin_settings->set('show_user_theme_settings', TRUE);
$gin_settings->save();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment