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.
Problem description
The #item_attributes argument is currently ignored by the theming system. By this, image data attributes currently can't be attached on the img tag.
Proposed solution
Add the #item_attributes definition to the Colorbox hook_theme() implementation. Attaching a patch for this.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2864466-item-attributes.patch | 359 bytes | mxh |
Comments
Comment #2
mxhHere's the patch.
Comment #4
frjo CreditAttribution: frjo commentedCommitted to 8-dev, thanks!