Problem/Motivation
Currently the img tag is in the Twig template, this means it can't be altered by a preprocess (for example to add new attributes).
Proposed resolution
If brand_image was a render array containing the entire image, it could be more easily altered.
Issue fork gin_login-3419286
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 #3
prudloff commentedI also added lazy loading so that mobile browsers can avoid loading the image if they don't display it.
Comment #4
arousseau commentedThe MR applies cleanly to 2.1.3 and the image works as expected, using the render array and lazy loading.
Comment #5
jwilson3It seems like this may introduce discrepancy between the IMG tag used for the single default image versus the random wallpaper setting (handled by client-side js/wallpaper.js) which contains nothing more than the src and (empty) alt attributes.
Comment #6
jurgenhaas