You are here

public function Yandex::getSettings in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 modules/geolocation_yandex/src/Plugin/geolocation/MapProvider/Yandex.php \Drupal\geolocation_yandex\Plugin\geolocation\MapProvider\Yandex::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

File

modules/geolocation_yandex/src/Plugin/geolocation/MapProvider/Yandex.php, line 43

Class

Yandex
Provides Yandex Maps API.

Namespace

Drupal\geolocation_yandex\Plugin\geolocation\MapProvider

Code

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