You are here

protected function Photon::getDefaultSettings in Geolocation Field 8.3

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

Return plugin default settings.

Return value

array Default settings.

Overrides GeocoderBase::getDefaultSettings

File

modules/geolocation_leaflet/src/Plugin/geolocation/Geocoder/Photon.php, line 38

Class

Photon
Provides the Photon.

Namespace

Drupal\geolocation_leaflet\Plugin\geolocation\Geocoder

Code

protected function getDefaultSettings() {
  $default_settings = parent::getDefaultSettings();
  $default_settings['autocomplete_min_length'] = 1;
  $default_settings['location_priority'] = [
    'lat' => '',
    'lng' => '',
  ];
  $default_settings['remove_duplicates'] = FALSE;
  return $default_settings;
}