This commit is contained in:
Sonja Broda
2022-03-17 19:03:00 +01:00
committed by GitHub
parent 7df7e6c822
commit 15da803094

View File

@@ -25,7 +25,7 @@ $lightbox = $link->isEmpty();
if ($block->location() == 'web') {
$src = $block->src();
} elseif ($image = $block->image()->toFile()) {
$alt = $alt ?? $image->alt();
$alt = $alt->or($image->alt());
$src = $image->url();
}