elseif ($this->
getSetting('image_link'
) == 'file'
) { $link_file = TRUE;
} // Collect cache tags to be added for each item in the field.
$responsive_image_style =
$this->responsiveImageStyleStorage->
load($this->
getSetting('responsive_image_style'
));
$image_styles_to_load =
[];
$cache_tags =
[];
if ($responsive_image_style) { $cache_tags = Cache::
mergeTags($cache_tags,
$responsive_image_style->
getCacheTags());
$image_styles_to_load =
$responsive_image_style->
getImageStyleIds();
} $image_styles =
$this->imageStyleStorage->
loadMultiple($image_styles_to_load);
foreach ($image_styles as $image_style) { $cache_tags = Cache::
mergeTags($cache_tags,
$image_style->
getCacheTags());
} foreach ($files as $delta =>
$file) { assert($file instanceof FileInterface
);
// Link the <picture> element to the original file.
if (isset($link_file)) {