public function LeafletMarkerPopup::getSettingsForm in Geolocation Field 8.2
Same name and namespace in other branches
- 8.3 modules/geolocation_leaflet/src/Plugin/geolocation/MapFeature/LeafletMarkerPopup.php \Drupal\geolocation_leaflet\Plugin\geolocation\MapFeature\LeafletMarkerPopup::getSettingsForm()
Provide a generic map settings form array.
Parameters
array $settings: The current map settings.
array $parents: Form specific optional prefix.
Return value
array A form array to be integrated in whatever.
Overrides MapFeatureBase::getSettingsForm
File
- modules/
geolocation_leaflet/ src/ Plugin/ geolocation/ MapFeature/ LeafletMarkerPopup.php, line 32
Class
- LeafletMarkerPopup
- Provides marker popup.
Namespace
Drupal\geolocation_leaflet\Plugin\geolocation\MapFeatureCode
public function getSettingsForm(array $settings, array $parents) {
$settings = $this
->getSettings($settings);
$form['info_auto_display'] = [
'#type' => 'checkbox',
'#title' => $this
->t('Automatically show info text.'),
'#default_value' => $settings['info_auto_display'],
];
return $form;
}