public function ImageExportFormatter::settingsSummary in REST Views 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Field/FieldFormatter/ImageExportFormatter.php \Drupal\rest_views\Plugin\Field\FieldFormatter\ImageExportFormatter::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 ImageFormatter::settingsSummary
File
- src/
Plugin/ Field/ FieldFormatter/ ImageExportFormatter.php, line 76
Class
- ImageExportFormatter
- Process an image through an image style, and render the URL.
Namespace
Drupal\rest_views\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = parent::settingsSummary();
if ($this
->getSetting('export_alt')) {
$summary[] = $this
->t('<em>Alt</em> field is exported.');
}
if ($this
->getSetting('export_title')) {
$summary[] = $this
->t('<em>Title</em> field is exported.');
}
return $summary;
}