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.
While working with a new project, I noticed that you can't enable/disable themes through context but in theory it would be an almost identical process to enabling/disabling modules so it should be relatively easy to support.
Comments
Comment #1
Deciphered CreditAttribution: Deciphered commentedYes and no.
Themes don't actually need to be enabled to be used, although it is generally recommended to do so.
To actually set the default theme, there are plenty of other context modules that would be better suited.
Comment #2
thedavidmeister CreditAttribution: thedavidmeister commentedYes, well, it would be easy to support so why not? Enabling/Disabling themes is a concept that will likely mature in the future, there are a bunch of issues being worked on in core to flesh out what it means to "enable" a theme, including potentially dependencies on modules and whatnot...
I wasn't thinking of setting the default theme here, you're right that there are other ways to do this.
Comment #3
thedavidmeister CreditAttribution: thedavidmeister commentedI thought I'd link to #1067408: Themes do not have an installation status that provides some insight into where enabled/disabled functionality for themes is heading in Core.
Comment #4
markhalliwellThemes shouldn't be an exception, we should follow the same decisions made about modules.
https://www.drupal.org/node/2193013
https://www.drupal.org/node/2225029