Needs review
Project:
Switchtheme
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 May 2012 at 01:59 UTC
Updated:
18 May 2022 at 17:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
shkiper commentedHi, I made a version of this module which works with current Drupal 8 release
Here is my patch
Comment #2
mgiffordComment #3
calebtr commentedI got Switchtheme working for Drupal 8, kinda sorta, see issues I noticed below.
This patch still applies to 7.x-1.x-dev - thanks @andrii zahura@. I updated the issue summary.
I added a couple of functions for classes that needed getEditableConfigNames().
The form now checks that a theme is not labeled "hidden" - this keeps Classy and Stable out of the form choices. I'm not sure I did this correctly or if we should be using a getter:
src/Switchtheme.php:
Issues I noticed:
I didn't test the random theme block at all.
I am attaching an updated patch. It would be great to get this committed as a 8.x-1.x-dev branch so we could track it better and file some more specific issues.
Comment #4
shkiper commentedHi @calebtr, thank you for your review. I fixed issues from your comment
Comment #5
TimeBandit commentedThanks for the port! Here are some comments:
https://www.drupal.org/node/2225029#comment-10108294
“Notice: Undefined index: switchtheme_bartik in Drupal\switchtheme\Form\SwitchthemeAdminSettings->buildForm() (line 46 of modules/contrib/switchtheme/src/Form/SwitchthemeAdminSettings.php”
Comment #6
shkiper commentedHi @TimeBandit. Thank you for your review.
I have fixed issues 1,3,4,6.
2- I can uninstall module without switchtheme.install file
5 - it is great idea, I'll try to implement this feature in future, but it needs some time
Comment #7
mgiffordOk.. So can we put out a rough D8 dev release with the code in #6?
Just like to start nudging this closer to a release. Or should we just start recommending folks move to something like https://www.drupal.org/project/styleswitcher for D8?
Comment #8
off commentedAny news?