public static function GoogleMapsProviderBase::getDefaultSettings in Geolocation Field 8.3
Same name and namespace in other branches
- 8.2 modules/geolocation_google_maps/src/GoogleMapsProviderBase.php \Drupal\geolocation_google_maps\GoogleMapsProviderBase::getDefaultSettings()
Provide a populated settings array.
Return value
array The settings array with the default map settings.
Overrides MapProviderBase::getDefaultSettings
3 calls to GoogleMapsProviderBase::getDefaultSettings()
- GoogleMaps::getDefaultSettings in modules/
geolocation_google_maps/ src/ Plugin/ geolocation/ MapProvider/ GoogleMaps.php - Provide a populated settings array.
- GoogleMapsProviderBase::getSettingsSummary in modules/
geolocation_google_maps/ src/ GoogleMapsProviderBase.php - Provide a summary array to use in field formatters.
- GoogleStaticMaps::getDefaultSettings in modules/
geolocation_google_maps/ modules/ geolocation_google_static_maps/ src/ Plugin/ geolocation/ MapProvider/ GoogleStaticMaps.php - Provide a populated settings array.
2 methods override GoogleMapsProviderBase::getDefaultSettings()
- GoogleMaps::getDefaultSettings in modules/
geolocation_google_maps/ src/ Plugin/ geolocation/ MapProvider/ GoogleMaps.php - Provide a populated settings array.
- GoogleStaticMaps::getDefaultSettings in modules/
geolocation_google_maps/ modules/ geolocation_google_static_maps/ src/ Plugin/ geolocation/ MapProvider/ GoogleStaticMaps.php - Provide a populated settings array.
File
- modules/
geolocation_google_maps/ src/ GoogleMapsProviderBase.php, line 155
Class
- GoogleMapsProviderBase
- Class GoogleMapsProviderBase.
Namespace
Drupal\geolocation_google_mapsCode
public static function getDefaultSettings() {
return array_replace_recursive(parent::getDefaultSettings(), [
'type' => static::$roadmap,
'zoom' => 10,
'height' => '400px',
'width' => '100%',
]);
}