Problem/Motivation
When using the ds_switch_view_mode module, the layout preview fallback image is a URL rather than a proper render array element.
Steps to reproduce
Log in as a user with permission to switch view mode. Edit content that is set to a layout with no preview icon. Fatal error should be shown.
Proposed resolution
Use similar image preview markup to what is used when a layout is not set.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fatal_error_render_key-3437746-2.patch | 1.93 KB | greenskin |
Issue fork ds-3437746
Show commands
Start 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 #2
greenskin commentedAttached patch that implements the proposed resolution.
Comment #3
greenskin commentedComment #8
swentel commentedmerged, thanks!