public function ComputedFormatter::settingsSummary in Computed Field 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 FormatterBase::settingsSummary
File
- src/
Plugin/ Field/ FieldFormatter/ ComputedFormatter.php, line 50
Class
- ComputedFormatter
- Plugin implementation of the 'computed' formatter.
Namespace
Drupal\computed_field\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = [];
$summary[] = $this
->getSetting('sanitized') ? t('Sanitized') : t('Unsanitized');
// Implement settings summary.
return $summary;
}