public static function CountryAutocompleteWidget::defaultSettings in Country 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/ CountryAutocompleteWidget.php, line 25
Class
- CountryAutocompleteWidget
- Plugin implementation of the 'country_autocomplete' widget.
Namespace
Drupal\country\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'size' => '60',
'autocomplete_route_name' => 'country.autocomplete',
'placeholder' => t('Start typing a country name ...'),
] + parent::defaultSettings();
}