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