Timeline for How to prevent theme change caused by $rendererService->renderPlain()
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 22, 2021 at 9:51 | answer | added | Hudri | timeline score: 1 | |
Jul 21, 2021 at 19:29 | comment | added | 4uk4 | Normally there is no theme switching within a request. The theme is negotiated globally for the entire request. My guess would be there are two requests, one rendering the content and one invoking the hook. Can you check the route names for both? If you have two different routes then check for each the requirements for negotiating the admin theme. If necessary implement your own negiotiator for the second request. See drupal.stackexchange.com/questions/281447/… | |
Jul 21, 2021 at 15:10 | history | asked | Hudri | CC BY-SA 4.0 |