public function LanguageFlagFormatter::settingsSummary in Flags 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 LanguageFormatter::settingsSummary
File
- flags_language/
src/ Plugin/ Field/ FieldFormatter/ LanguageFlagFormatter.php, line 54
Class
- LanguageFlagFormatter
- Plugin implementation of the 'language_flag' formatter.
Namespace
Drupal\flags_language\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = parent::settingsSummary();
$format = $this
->getSetting('flag_display');
$formats = $this
->getOutputFormats();
$summary[] = $formats[$format];
return $summary;
}