Commit 4d59f99a authored by Tushar Gujar's avatar Tushar Gujar Committed by Gaus Surahman
Browse files

Issue #3241415 by nanobyt3, codesmith: Respect the image title from a Media Image for captions

parent 6159ba4d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line

Blazy 8.x-2.0-dev, 2021-12-15
-----------------------------
- Issue #3241415 by nanobyt3, codesmith: Respect the image title from a Media
  Image for captions.

Blazy 8.x-2.0-dev, 2021-10-06
-----------------------------
- Issue #3210635 by grathbone, jastraat, Bwolf: Lazyloaded image-to-iframes /
+3 −1
Original line number Diff line number Diff line
@@ -108,7 +108,9 @@ class BlazyMedia implements BlazyMediaInterface {
    if ($item) {
      $settings['file_tags'] = ['file:' . $item->target_id];
      $settings['uri'] = Blazy::uri($item);
      if (trim($item->title) == '') {
        $item->title = $media->label();
      }

      // Pass through image item including poster image overrides.
      $data['item'] = $item;