protected function CountryFlagFormatter::getOutputFormats in Flags 8
Gets available view formats.
Return value
string[]
2 calls to CountryFlagFormatter::getOutputFormats()
- CountryFlagFormatter::settingsForm in flags_country/
src/ Plugin/ Field/ FieldFormatter/ CountryFlagFormatter.php - Returns a form to configure settings for the formatter.
- CountryFlagFormatter::settingsSummary in flags_country/
src/ Plugin/ Field/ FieldFormatter/ CountryFlagFormatter.php - Returns a short summary for the current formatter settings.
File
- flags_country/
src/ Plugin/ Field/ FieldFormatter/ CountryFlagFormatter.php, line 70
Class
- CountryFlagFormatter
- Plugin implementation of the 'country' formatter.
Namespace
Drupal\flags_country\Plugin\Field\FieldFormatterCode
protected function getOutputFormats() {
return array(
'flag-before' => $this
->t('Flag before country name'),
'flag-after' => $this
->t('Flag after country name'),
'flag-instead' => $this
->t('Replace country name with flag'),
);
}