public static function GeolocationYandexWidget::defaultSettings in Geolocation Field 8.3
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides GeolocationMapWidgetBase::defaultSettings
File
- modules/
geolocation_yandex/ src/ Plugin/ Field/ FieldWidget/ GeolocationYandexWidget.php, line 37
Class
- GeolocationYandexWidget
- Plugin implementation of the 'geolocation_yandex' widget.
Namespace
Drupal\geolocation_yandex\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
$settings = parent::defaultSettings();
$settings[self::$mapProviderSettingsFormId]['map_features']['yandex_control_search'] = [
'enabled' => TRUE,
'weight' => -100,
];
$settings[self::$mapProviderSettingsFormId]['map_features']['yandex_control_zoom']['enabled'] = TRUE;
$settings[self::$mapProviderSettingsFormId]['map_features']['yandex_control_geolocation']['enabled'] = TRUE;
return $settings;
}