public static function GeolocationMapWidgetBase::defaultSettings in Geolocation Field 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldWidget/GeolocationMapWidgetBase.php \Drupal\geolocation\Plugin\Field\FieldWidget\GeolocationMapWidgetBase::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
3 calls to GeolocationMapWidgetBase::defaultSettings()
- GeolocationGoogleWidget::defaultSettings in modules/
geolocation_google_maps/ src/ Plugin/ Field/ FieldWidget/ GeolocationGoogleWidget.php - Defines the default settings for this plugin.
- GeolocationLeafletWidget::defaultSettings in modules/
geolocation_leaflet/ src/ Plugin/ Field/ FieldWidget/ GeolocationLeafletWidget.php - Defines the default settings for this plugin.
- GeolocationYandexWidget::defaultSettings in modules/
geolocation_yandex/ src/ Plugin/ Field/ FieldWidget/ GeolocationYandexWidget.php - Defines the default settings for this plugin.
3 methods override GeolocationMapWidgetBase::defaultSettings()
- GeolocationGoogleWidget::defaultSettings in modules/
geolocation_google_maps/ src/ Plugin/ Field/ FieldWidget/ GeolocationGoogleWidget.php - Defines the default settings for this plugin.
- GeolocationLeafletWidget::defaultSettings in modules/
geolocation_leaflet/ src/ Plugin/ Field/ FieldWidget/ GeolocationLeafletWidget.php - Defines the default settings for this plugin.
- GeolocationYandexWidget::defaultSettings in modules/
geolocation_yandex/ src/ Plugin/ Field/ FieldWidget/ GeolocationYandexWidget.php - Defines the default settings for this plugin.
File
- src/
Plugin/ Field/ FieldWidget/ GeolocationMapWidgetBase.php, line 117
Class
- GeolocationMapWidgetBase
- Map widget base.
Namespace
Drupal\geolocation\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
$settings = [
'centre' => [
'fit_bounds' => [
'enable' => TRUE,
],
],
'auto_client_location' => FALSE,
'auto_client_location_marker' => FALSE,
'allow_override_map_settings' => FALSE,
'hide_textfield_form' => FALSE,
];
$settings[static::$mapProviderSettingsFormId] = \Drupal::service('plugin.manager.geolocation.mapprovider')
->getMapProviderDefaultSettings(static::$mapProviderId);
$settings += parent::defaultSettings();
return $settings;
}