protected function GoogleGeocoderBase::getDefaultSettings in Geolocation Field 8.3
Same name and namespace in other branches
- 8.2 modules/geolocation_google_maps/src/GoogleGeocoderBase.php \Drupal\geolocation_google_maps\GoogleGeocoderBase::getDefaultSettings()
Return plugin default settings.
Return value
array Default settings.
Overrides GeocoderBase::getDefaultSettings
1 call to GoogleGeocoderBase::getDefaultSettings()
- GoogleGeocodingAPI::getDefaultSettings in modules/
geolocation_google_maps/ src/ Plugin/ geolocation/ Geocoder/ GoogleGeocodingAPI.php - Return plugin default settings.
1 method overrides GoogleGeocoderBase::getDefaultSettings()
- GoogleGeocodingAPI::getDefaultSettings in modules/
geolocation_google_maps/ src/ Plugin/ geolocation/ Geocoder/ GoogleGeocodingAPI.php - Return plugin default settings.
File
- modules/
geolocation_google_maps/ src/ GoogleGeocoderBase.php, line 62
Class
- GoogleGeocoderBase
- Base class.
Namespace
Drupal\geolocation_google_mapsCode
protected function getDefaultSettings() {
$default_settings = parent::getDefaultSettings();
$default_settings['autocomplete_min_length'] = 1;
$default_settings['component_restrictions'] = [
'route' => '',
'locality' => '',
'administrative_area' => '',
'postal_code' => '',
'country' => '',
];
$default_settings['boundary_restriction'] = [
'south' => '',
'west' => '',
'north' => '',
'east' => '',
];
return $default_settings;
}