public function GpgKeyFormatter::settingsSummary in Mailhandler 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/ GpgKeyFormatter.php, line 62
Class
- GpgKeyFormatter
- Plugin implementation of the 'mailhandler_gpg' formatter.
Namespace
Drupal\mailhandler\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary[] = t('Display: @property', [
'@property' => $this
->getSetting('display'),
]);
return $summary;
}