You are here

protected function LanguagefieldFlagFormatter::getOutputFormats in Flags 8

Gets available view formats.

Return value

string[]

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

File

flags_languagefield/src/Plugin/Field/FieldFormatter/LanguagefieldFlagFormatter.php, line 67

Class

LanguagefieldFlagFormatter
Plugin implementation of the 'languagefield_flag' formatter.

Namespace

Drupal\flags_languagefield\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'),
  );
}