public function TimeZoneFieldFormatter::settingsSummary in Time Zone 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/ TimeZoneFieldFormatter.php, line 26
Class
- TimeZoneFieldFormatter
- Plugin implementation of the 'tzfield_date' formatter.
Namespace
Drupal\tzfield\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary[] = $this
->t('Date format string: :format', [
':format' => $this
->getSetting('format'),
]);
return $summary;
}