public static function LanguageFormatter::defaultSettings in Custom Language field 8
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides StringFormatter::defaultSettings
File
- src/
Plugin/ Field/ FieldFormatter/ LanguageFormatter.php, line 74
Class
- LanguageFormatter
- Plugin implementation of the 'language_field' formatter.
Namespace
Drupal\languagefield\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$settings = parent::defaultSettings();
$settings['format'] = [
'name' => 'name',
];
return $settings;
}