Skip to content
Snippets Groups Projects
Commit 9b005f6b authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Merge branch 'feature/ISTWCMS-4695-ebremner-theme-banners' into '1.0.x'

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

See merge request !106
parents 091225b1 7ddff578
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