Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
farm
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
farm
Commits
e8250a39
Commit
e8250a39
authored
2 years ago
by
Michael Stenta
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3309198
: Allow users to override Gin theme settings
parent
f3e98058
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
modules/core/ui/theme/farm_ui_theme.install
+12
-0
12 additions, 0 deletions
modules/core/ui/theme/farm_ui_theme.install
with
13 additions
and
0 deletions
CHANGELOG.md
+
1
−
0
View file @
e8250a39
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
modules/core/ui/theme/farm_ui_theme.install
+
12
−
0
View file @
e8250a39
...
...
@@ -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
();
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment