Push image_style_options() global function to a service

Created on 23 April 2024, about 1 year ago

Through creating a custom formatter, I found that image_style_options() remains in image.module.

If my understanding of the D8+ environment is correct, this would be better suited as a service. A global function that does not implement a hook β€” seems to be an artifact of the D7 days.

There would need to be changes in both the image and responsive_image core modules for this to happen. Throwing a deprecation warning for the functional approach would be the next logical step.

Is there a reason I'm not privy to for the continued functional approach?

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
Image systemΒ  β†’

Last updated 6 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States FrankieD3

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024