Skip to content
Snippets Groups Projects
Commit 7ddff578 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4695: adding alt tag to responsive images in UW service

parent 091225b1
No related branches found
No related tags found
2 merge requests!111Tag 1.0.1,!106ISTWCMS-4695: adding alt tag to responsive images in UW service
......@@ -78,6 +78,9 @@ class UWService implements UWServiceInterface {
$variables['uri'] = $file->getFileUri();
$variables['responsive_image_style_id'] = $image_style;
// Set the alt for the image.
$variables['alt'] = $entity->field_media_image->alt;
// These is a function from the responsive image module that sets all
// the variables for the sources of the responsive image.
template_preprocess_responsive_image($variables);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment