Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
12.85 KB
MD5: 1f1f98c2e79bc5e0bbb6c7d66ff7098e
SHA-1: 66c39227ec84d1e4561d9f8c130d35fe1468f3e5
SHA-256: 2d3fab7aa4a06a93e78e76610c978fbe9abb5a1b511a09b23518cd8db76d53b9
Download zip
18.51 KB
MD5: c037137c19a67b2f1222017dd3025d48
SHA-1: 5985c07e7504744a8eb7e5cd82995bf45cc3b334
SHA-256: 3b8731262ba31aadd8dc4b707682e0e8bd6d52be78d61e5f90f63c6e088dc85d
Release notes
Bug-fix release. The loading, fetchpriority and decoding settings were ignored on Drupal 11.4+, where core reads image_formatter attributes from #attributes instead of the now-deprecated #item_attributes (change record).
- Attributes are now written where each core version actually reads them:
#attributeson Drupal 11.4+,#item_attributeson older cores, via a new sharedImageAttributesApplierTrait. No deprecation warnings on 11.4+. - Added a render cache key with the loading settings, so two fields rendering the same media with different loading configurations no longer share cached markup.
- Image elements keep their cache metadata (file cache tags were being dropped, which could leave stale markup after replacing an image).
- The image formatter now extends svg_image's formatter when that module is enabled, preserving its SVG handling; falls back to core's image formatter otherwise.
- Settings names and schema unchanged — no update needed in existing displays.