You are here

public static function GeolocationGooglegeocoderWidget::defaultSettings in Geolocation Field 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldWidget/GeolocationGooglegeocoderWidget.php, line 101

Class

GeolocationGooglegeocoderWidget
Plugin implementation of the 'geolocation_googlegeocoder' widget.

Namespace

Drupal\geolocation\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  $settings = [
    'populate_address_field' => FALSE,
    'target_address_field' => NULL,
    'explicite_actions_address_field' => FALSE,
    'default_longitude' => NULL,
    'default_latitude' => NULL,
    'auto_client_location' => FALSE,
    'auto_client_location_marker' => FALSE,
    'allow_override_map_settings' => FALSE,
  ];
  $settings += parent::defaultSettings();
  $settings += self::getGoogleMapDefaultSettings();
  return $settings;
}