public function ImageZoomFormatter::settingsSummary in Image Zoom 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/ImageZoomFormatter.php \Drupal\imagezoom\Plugin\Field\FieldFormatter\ImageZoomFormatter::settingsSummary()
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 FormatterBase::settingsSummary
File
- src/
Plugin/ Field/ FieldFormatter/ ImageZoomFormatter.php, line 101
Class
- ImageZoomFormatter
- Image Zoom field formatter for Image fields.
Namespace
Drupal\imagezoom\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$profiles = $this
->optionsProfiles();
$summary[] = $this
->t('Zoom options: @profile', [
'@profile' => $profiles[$this
->getSetting('imagezoom_options')],
]);
return $summary;
}