You are here

public static function Location::getDefaultSettings in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/geolocation/LocationInput/Location.php \Drupal\geolocation\Plugin\geolocation\LocationInput\Location::getDefaultSettings()

Provide a populated settings array.

Return value

array The settings array with the default plugin settings.

Overrides LocationInputBase::getDefaultSettings

File

src/Plugin/geolocation/LocationInput/Location.php, line 54

Class

Location
Location based proximity center.

Namespace

Drupal\geolocation\Plugin\geolocation\LocationInput

Code

public static function getDefaultSettings() {
  $settings = parent::getDefaultSettings();
  $settings['location_settings'] = [
    'settings' => [],
  ];
  $settings['location_plugin_id'] = '';
  return $settings;
}