Needs work
Project:
Drupal core
Version:
main
Component:
responsive_image.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Apr 2016 at 07:16 UTC
Updated:
25 Jan 2022 at 16:15 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wim leersStrongly related:
All 3 of those issues simplify/remove WTFs in the preprocess function, and would therefore help make this issue happen.
Comment #3
wim leersNote that for this particular issue (unlike #2694179: Remove template_preprocess_image() and #2699635: Remove template_preprocess_form_element_label() for example), it probably makes sense to define additional Twig functions.
For example: besides the
file_url()andurl()Twig functions, also havingimage_style_url($image_url, $image_style)would be very valuable. It may even be a necessity to make this issue happen. But it would also be valuable to front-end developers in other templates.Comment #4
wim leersUpdated IS per #2 and #3.
Comment #5
wim leersHere's what we can do for now.
Comment #18
catch