- Issue created by @haver
- Status changed to Closed: works as designed
over 1 year ago 12:28pm 19 August 2023 - 🇦🇿Azerbaijan haver
Solved as described in Blazy API doc https://git.drupalcode.org/project/blazy/-/blob/7.x-1.x/blazy.api.php
Create fake image object$itm = new \stdClass(); $itm->width = 50; $itm->height = 50; $itm->alt = ''; $itm->uri = $imageUrl; $el = ['item' => $itm,];
Format with Blazy formatter
$formatted = $formatter->getBlazy($el);
Use in 'slide' html markup
<div class="slider-image">' . drupal_render($formatted) . '</div>