public static function GeocoderAutocomplete::defaultSettings in Geocoder autocomplete 8
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides StringTextfieldWidget::defaultSettings
File
- src/
Plugin/ Field/ FieldWidget/ GeocoderAutocomplete.php, line 23
Class
- GeocoderAutocomplete
- Implements geocoder_autocomplete widget on 'string' fields.
Namespace
Drupal\geocoder_autocomplete\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'size' => '60',
'autocomplete_route_name' => 'geocoder_autocomplete.autocomplete',
'placeholder' => t('Digit a place'),
] + parent::defaultSettings();
}