private function GoogleMapsProviderBase::getMapTypes in Geolocation Field 8.2
Same name and namespace in other branches
- 8.3 modules/geolocation_google_maps/src/GoogleMapsProviderBase.php \Drupal\geolocation_google_maps\GoogleMapsProviderBase::getMapTypes()
An array of all available map types.
Return value
array The map types.
2 calls to GoogleMapsProviderBase::getMapTypes()
- GoogleMapsProviderBase::getSettingsForm in modules/
geolocation_google_maps/ src/ GoogleMapsProviderBase.php - Provide a generic map settings form array.
- GoogleMapsProviderBase::getSettingsSummary in modules/
geolocation_google_maps/ src/ GoogleMapsProviderBase.php - Provide a summary array to use in field formatters.
File
- modules/
geolocation_google_maps/ src/ GoogleMapsProviderBase.php, line 140
Class
- GoogleMapsProviderBase
- Class GoogleMapsProviderBase.
Namespace
Drupal\geolocation_google_mapsCode
private function getMapTypes() {
$mapTypes = [
static::$ROADMAP => 'Road map view',
static::$SATELLITE => 'Google Earth satellite images',
static::$HYBRID => 'A mixture of normal and satellite views',
static::$TERRAIN => 'A physical map based on terrain information',
];
return array_map([
$this,
't',
], $mapTypes);
}