Problem/Motivation
The image style generation has been improved in #2027423: Make image style system flexible. Now a module can change the way image derivatives are generated. However, right now altering the derivative URI can be done by extending \Drupal\image\Entity\ImageStyle
. This is a problem because the last module to override the image style class wins, and everyone else loses.
Proposed resolution
Allow modules to alter the image style derivative generated URI by implementing a new hook_image_style_uri_alter()
.
Remaining tasks
None.
User interface changes
None.
API changes
New hook hook_image_style_uri_alter()
.
Data model changes
None.
Beta phase evaluation
Issue category | Feature because gives new, more flexible, ways for modules to handle the image derivatives generation. |
---|---|
Issue priority | Not critical because right now modules still can alter the image derivative generation the last win and all other lose. |
Disruption | No disruption. |