public static function LanguageAutocompleteWidget::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 PluginSettingsBase::defaultSettings
File
- src/
Plugin/ Field/ FieldWidget/ LanguageAutocompleteWidget.php, line 66
Class
- LanguageAutocompleteWidget
- Plugin implementation of the 'languagefield_autocomplete' widget.
Namespace
Drupal\languagefield\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'size' => '60',
'autocomplete_route_name' => 'languagefield.autocomplete',
'placeholder' => '',
] + parent::defaultSettings();
}