mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Issue #3309198: Allow users to override Gin theme settings
This commit is contained in:
parent
f3e9805871
commit
e8250a3987
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue