Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Created from #1775842: [meta] Convert all variables to state and/or config systems.
theme_settings
theme_$theme_settings
Comment | File | Size | Author |
---|---|---|---|
#8 | theme_system_variables_to_config-1830978-8.patch | 2.19 KB | 8thom |
#4 | theme_system_variables_to_config-1830978-4.patch | 2.01 KB | 8thom |
#2 | theme_system_variables_to_config-1830978-2.patch | 5.1 KB | 8thom |
#1 | theme_system_variables_to_config-1830978-1.patch | 5.09 KB | 8thom |
Comments
Comment #1
8thom CreditAttribution: 8thom commentedFirst attempt...
Comment #2
8thom CreditAttribution: 8thom commentedSorry didn't realise there was other issues that refer to these variables which are putting config into system.site,
updated patch to reflect this.
Comment #3
8thom CreditAttribution: 8thom commentedWill break up this patch and include in #1798872: Convert admin_theme to CMI & #1829224: Convert the 'theme_default' variable to CMI
Comment #3.0
8thom CreditAttribution: 8thom commentedincluded link to issue #1775842
Comment #4
8thom CreditAttribution: 8thom commentedHere it is, not too sure how to make update function for theme_$theme_settings, are there any examples of updating dynamic variables?
Comment #5
8thom CreditAttribution: 8thom commented#2: theme_system_variables_to_config-1830978-2.patch queued for re-testing.
Comment #7
8thom CreditAttribution: 8thom commented#4: theme_system_variables_to_config-1830978-4.patch queued for re-testing.
Comment #8
8thom CreditAttribution: 8thom commentedThis patch Include update function for theme_$theme_settings.
Comment #9
alexpottThis is quite a complicated issue and the conversion has already been attempted in #1712250: Convert theme settings to configuration system. I'm tempted to mark this issue as a duplicate. The essential issue here is that theme settings should come from a configuration file and not be built from multiple configurations at runtime - at the moment theme settings are built from defaults in code, global settings in variable (which this patch converts), theme .info files and a theme specific variable.
Additionally the system.theme namespace is now used for enabled themes so we need to be careful about using it for this.
Comment #10
8thom CreditAttribution: 8thom commented#8: theme_system_variables_to_config-1830978-8.patch queued for re-testing.
Comment #12
sunComment #13
aspilicious CreditAttribution: aspilicious commentedAlready fixed in the linked issue above
Comment #13.0
aspilicious CreditAttribution: aspilicious commentedconverted issue to cover theme_settings & theme_$theme_settings