You are here

public static function LanguageFlagFormatter::defaultSettings in Flags 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides LanguageFormatter::defaultSettings

File

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

Class

LanguageFlagFormatter
Plugin implementation of the 'language_flag' formatter.

Namespace

Drupal\flags_language\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings = parent::defaultSettings();

  // Fall back to field settings by default.
  $settings['flag_display'] = 'flag-before';
  return $settings;
}