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 commentedComment #2
jacob.embree commented#1 worked for me.
Comment #4
zeip commentedLooks good, thanks for the patch! I committed the patch to 7.x-1.x.