You are here

protected function LanguageFlagFormatter::getOutputFormats in Flags 8

Gets available view formats.

Return value

string[]

2 calls to LanguageFlagFormatter::getOutputFormats()
LanguageFlagFormatter::settingsForm in flags_language/src/Plugin/Field/FieldFormatter/LanguageFlagFormatter.php
Returns a form to configure settings for the formatter.
LanguageFlagFormatter::settingsSummary in flags_language/src/Plugin/Field/FieldFormatter/LanguageFlagFormatter.php
Returns a short summary for the current formatter settings.

File

flags_language/src/Plugin/Field/FieldFormatter/LanguageFlagFormatter.php, line 70

Class

LanguageFlagFormatter
Plugin implementation of the 'language_flag' formatter.

Namespace

Drupal\flags_language\Plugin\Field\FieldFormatter

Code

protected function getOutputFormats() {
  return array(
    'flag-before' => $this
      ->t('Flag before language name'),
    'flag-after' => $this
      ->t('Flag after language name'),
    'flag-instead' => $this
      ->t('Replace language name with flag'),
  );
}