public function ImageZoomGalleryFormatter::settingsSummary in Image Zoom 8.2
Returns a short summary for the current formatter settings.
If an empty result is returned, a UI can still be provided to display a settings form in case the formatter has configurable settings.
Return value
string[] A short summary of the formatter settings.
Overrides ImageZoomFormatter::settingsSummary
File
- modules/
imagezoom_gallery/ src/ Plugin/ Field/ FieldFormatter/ ImageZoomGalleryFormatter.php, line 52
Class
- ImageZoomGalleryFormatter
- Image Zoom gallery field formatter for Image fields.
Namespace
Drupal\imagezoom_gallery\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = parent::settingsSummary();
$image_styles = image_style_options(FALSE);
unset($image_styles['']);
$summary[] = t('Thumbnail image style: @style', [
'@style' => isset($image_styles[$this
->getSetting('imagezoom_thumb_style')]) ? $image_styles[$this
->getSetting('imagezoom_thumb_style')] : 'original',
]);
return $summary;
}