Closed (fixed)
Project:
View Mode Switch Field
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
9 Dec 2021 at 21:49 UTC
Updated:
9 Dec 2021 at 22:25 UTC
Jump to comment: Most recent
Currently, the ViewModeSwitch::getViewModeToSwitchTo() method contains some error-prone code to detect if it is executed in preview context. This was only needed for correct previews (e.g. in paragraphs widget or when configuring a layout via layout builder).
Replace current caching functionality of ViewModeSwitch::getViewModeToSwitchTo() with static caching
n/a
cache.view_mode_switch dependency is removed from view_mode_switch servicecache.view_mode_switch cache backend is removedStart within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
hctomComment #4
hctomAll necessary changes are done
Comment #6
hctomComment #7
hctom