public function ExtraImageFieldClassesFormatter::settingsSummary in Extra Image Field Classes 8
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 ImageFormatter::settingsSummary
File
- src/
Plugin/ Field/ FieldFormatter/ ExtraImageFieldClassesFormatter.php, line 48
Class
- ExtraImageFieldClassesFormatter
- Plugin implementation of the 'extra_image_field_classes' formatter.
Namespace
Drupal\extra_image_field_classes\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = parent::settingsSummary();
$summary[] = t('Extra classes for the Image Field: @class', array(
'@class' => $this
->getSetting('extra_image_field_classes'),
));
return $summary;
}