public function Yandex::getSettings in Geolocation Field 8.2
Same name and namespace in other branches
- 8.3 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
1 call to Yandex::getSettings()
- Yandex::alterRenderArray in modules/
geolocation_yandex/ src/ Plugin/ geolocation/ MapProvider/ Yandex.php - Alter render array.
File
- modules/
geolocation_yandex/ src/ Plugin/ geolocation/ MapProvider/ Yandex.php, line 36
Class
- Yandex
- Provides Yandex Maps API.
Namespace
Drupal\geolocation_yandex\Plugin\geolocation\MapProviderCode
public function getSettings(array $settings) {
$settings = parent::getSettings($settings);
$settings['zoom'] = (int) $settings['zoom'];
return $settings;
}