You are here

public function GoogleMapsProviderBase::getSettings in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 modules/geolocation_google_maps/src/GoogleMapsProviderBase.php \Drupal\geolocation_google_maps\GoogleMapsProviderBase::getSettings()

Provide map provider specific settings ready to handover to JS.

Parameters

array $settings: Current general map settings. Might contain unrelated settings as well.

Return value

array An array only containing keys defined in this plugin.

Overrides MapProviderBase::getSettings

2 calls to GoogleMapsProviderBase::getSettings()
GoogleMaps::getSettings in modules/geolocation_google_maps/src/Plugin/geolocation/MapProvider/GoogleMaps.php
Provide map provider specific settings ready to handover to JS.
GoogleMapsProviderBase::getSettingsForm in modules/geolocation_google_maps/src/GoogleMapsProviderBase.php
Provide a generic map settings form array.
1 method overrides GoogleMapsProviderBase::getSettings()
GoogleMaps::getSettings in modules/geolocation_google_maps/src/Plugin/geolocation/MapProvider/GoogleMaps.php
Provide map provider specific settings ready to handover to JS.

File

modules/geolocation_google_maps/src/GoogleMapsProviderBase.php, line 170

Class

GoogleMapsProviderBase
Class GoogleMapsProviderBase.

Namespace

Drupal\geolocation_google_maps

Code

public function getSettings(array $settings) {
  $settings = parent::getSettings($settings);
  $settings['zoom'] = (int) $settings['zoom'];
  return $settings;
}