Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The Drupal 8 port is almost done. There's just one small bit that needs to be fixed, and that's the possibility to make the image link to the content or the file. This was possible in D7, but has not been ported to D8 yet. See: https://www.drupal.org/node/2684631#comment-11046237
Problem description
The D7 version of the module uses theme_image_formatter
but in D8, it requires an ImageItem
object which we don't have. Instead of that, I'm using theme_image_style
, so the question is what is the best way to generate a link with the themed image object.
Comments
Comment #2
BarisW CreditAttribution: BarisW at LimoenGroen commentedComment #4
BarisW CreditAttribution: BarisW at LimoenGroen commentedFixed and committed to 8.x-1.x-dev