public function Geolocation::optionsForm in Openlayers 7.3
@TODO What is this return? If it is the form, why is form by reference?
Overrides Base::optionsForm
File
- modules/
openlayers_library/ src/ Plugin/ Component/ Geolocation/ Geolocation.php, line 24 - Component: Geolocation.
Class
- Geolocation
- Class Geolocation.
Namespace
Drupal\openlayers_library\Plugin\Component\GeolocationCode
public function optionsForm(array &$form, array &$form_state) {
$form['options']['checkboxID'] = array(
'#type' => 'textfield',
'#title' => t('Checkbox HTML ID'),
'#default_value' => $this
->getOption('checkboxID', 'trackPosition'),
);
$form['options']['positionAccuracyID'] = array(
'#type' => 'textfield',
'#title' => t('Position accuracy HTML ID'),
'#default_value' => $this
->getOption('positionAccuracyID', 'positionAccuracy'),
);
$form['options']['altitudeID'] = array(
'#type' => 'textfield',
'#title' => t('Altitude HTML ID'),
'#default_value' => $this
->getOption('altitudeID', 'altitude'),
);
$form['options']['altitudeAccuracyID'] = array(
'#type' => 'textfield',
'#title' => t('Altitude accuracy HTML ID'),
'#default_value' => $this
->getOption('altitudeAccuracyID', 'altitudeAccuracy'),
);
$form['options']['headingID'] = array(
'#type' => 'textfield',
'#title' => t('Heading HTML ID'),
'#default_value' => $this
->getOption('headingID', 'heading'),
);
$form['options']['speedID'] = array(
'#type' => 'textfield',
'#title' => t('Speed HTML ID'),
'#default_value' => $this
->getOption('speedID', 'speed'),
);
}