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.
When outputting an image field that has a title attribute set, the title attribute is missing. For example:
"field_image" : {
"src" : "http://example.com",
"alt" : "My alternative text"
}
It'd be great if we could also get the title attribute, for example:
"field_image" : {
"src" : "http://example.com",
"alt" : "My alternative text",
"title": "My title text"
}
Patch to come...
Comment | File | Size | Author |
---|---|---|---|
#1 | image_title-2512994-1.patch | 2.13 KB | tyler.frankenstein |
Comments
Comment #1
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedComment #2
jacob.embree CreditAttribution: jacob.embree at St. Louis Integration commented#1 worked for me.
Comment #4
ZeiP CreditAttribution: ZeiP as a volunteer commentedLooks good, thanks for the patch! I committed the patch to 7.x-1.x.