Problem/Motivation

When using the "image" provider for media entities, the title attribute is the name of the entity and not the title attribute of the image. The alt attribute is always t('Thumbnail').

Proposed resolution

Get the alt and title values from the source image field.

CommentFileSizeAuthor
#2 fix_alt_title-2836423-2.patch914 byteskeesje

Comments

keesje created an issue. See original summary.

keesje’s picture

StatusFileSize
new914 bytes
keesje’s picture

Status: Active » Closed (works as designed)

This issue seems a bit more complicated than stated in the original issue body.
The above patch is only fixing this issue at first save. These attributes are not updated when resaving the image entity.

This is actually by design: https://www.drupal.org/node/2749695
Much left to be desired here ;-)

keesje’s picture

keesje’s picture