You are here

protected function Photon::getDefaultSettings in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 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 30

Class

Photon
Provides the Photon.

Namespace

Drupal\geolocation_leaflet\Plugin\geolocation\Geocoder

Code

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