public static function LanguagefieldFlagFormatter::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_languagefield/
src/ Plugin/ Field/ FieldFormatter/ LanguagefieldFlagFormatter.php, line 23
Class
- LanguagefieldFlagFormatter
- Plugin implementation of the 'languagefield_flag' formatter.
Namespace
Drupal\flags_languagefield\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$settings = parent::defaultSettings();
// Fall back to field settings by default.
$settings['flag_display'] = 'flag-before';
return $settings;
}