You are here

public static function LeafletControlGeocoder::getDefaultSettings in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 modules/geolocation_leaflet/src/Plugin/geolocation/MapFeature/LeafletControlGeocoder.php \Drupal\geolocation_leaflet\Plugin\geolocation\MapFeature\LeafletControlGeocoder::getDefaultSettings()

Provide a populated settings array.

Return value

array The settings array with the default map settings.

Overrides ControlElementBase::getDefaultSettings

1 call to LeafletControlGeocoder::getDefaultSettings()
LeafletControlGeocoder::getSettingsForm in modules/geolocation_leaflet/src/Plugin/geolocation/MapFeature/LeafletControlGeocoder.php
Provide a generic map settings form array.

File

modules/geolocation_leaflet/src/Plugin/geolocation/MapFeature/LeafletControlGeocoder.php, line 60

Class

LeafletControlGeocoder
Provides Geocoder control element.

Namespace

Drupal\geolocation_leaflet\Plugin\geolocation\MapFeature

Code

public static function getDefaultSettings() {
  return array_replace_recursive(parent::getDefaultSettings(), [
    'geocoder' => 'nominatim',
    'settings' => [],
  ]);
}