Use alt and title attribute from image field

Created on 7 May 2024, 11 months ago
Updated 7 August 2024, 8 months ago

Problem/Motivation

#3027703: Alt and title text. adds a way to set a fixed alt text or get it from another field but I could not find a way to use the alt text from the image field itself.

Steps to reproduce

Create an image field and use image_popup as formatter.
Upload an image and set an alt text.
The alt text is not used by the formatter.

Proposed resolution

ImagePopupFieldFormatter::viewElements() should use the alt text and title from the image field if nothing is set in the formatter settings.

Feature request
Status

RTBC

Version

2.0

Component

Code

Created by

🇫🇷France prudloff Lille

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024