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