Skip to content
Snippets Groups Projects

Issue #3392976: Photoswipe Caption: Selected source field is printed including the field label (no matter if the label is turned off in the field configuration)

Closed Issue #3392976: Photoswipe Caption: Selected source field is printed including the field label (no matter if the label is turned off in the field configuration)
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -250,7 +250,7 @@ function photoswipe_dynamic_caption_get_caption(ImageDTO $imageDTO) {
$caption = $imageDTO->getAlt();
break;
}
$field_view = $entity->{$caption_setting}->view();
$field_view = $entity->{$caption_setting}->view($field_view['#view_mode']);
$caption = \Drupal::service('renderer')->render($field_view);
break;
}
Loading