diff --git a/CHANGELOG.md b/CHANGELOG.md index dc40abcf..a14b6b2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/modules/core/ui/theme/farm_ui_theme.install b/modules/core/ui/theme/farm_ui_theme.install index 407f36ed..1bb9da3c 100644 --- a/modules/core/ui/theme/farm_ui_theme.install +++ b/modules/core/ui/theme/farm_ui_theme.install @@ -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(); +}