public static function GeolocationLeafletWidget::defaultSettings in Geolocation Field 8.2
Same name and namespace in other branches
- 8.3 modules/geolocation_leaflet/src/Plugin/Field/FieldWidget/GeolocationLeafletWidget.php \Drupal\geolocation_leaflet\Plugin\Field\FieldWidget\GeolocationLeafletWidget::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides GeolocationMapWidgetBase::defaultSettings
File
- modules/
geolocation_leaflet/ src/ Plugin/ Field/ FieldWidget/ GeolocationLeafletWidget.php, line 36
Class
- GeolocationLeafletWidget
- Plugin implementation of the 'geolocation_leaflet' widget.
Namespace
Drupal\geolocation_leaflet\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
$settings = parent::defaultSettings();
$settings[self::$mapProviderSettingsFormId]['map_features']['leaflet_control_geocoder'] = [
'enabled' => TRUE,
'weight' => -100,
];
return $settings;
}