public function SetValues::optionsForm in Openlayers 7.3
@TODO What is this return? If it is the form, why is form by reference?
Overrides Base::optionsForm
File
- src/
Plugin/ Component/ SetValues/ SetValues.php, line 22 - Component: SetValues.
Class
- SetValues
- Class SetValues.
Namespace
Drupal\openlayers\Plugin\Component\SetValuesCode
public function optionsForm(array &$form, array &$form_state) {
$form['options']['latitude'] = array(
'#type' => 'textfield',
'#title' => t('Latitude'),
'#default_value' => $this
->getOption('latitude'),
);
$form['options']['longitude'] = array(
'#type' => 'textfield',
'#title' => t('Longitude'),
'#default_value' => $this
->getOption('longitude'),
);
$form['options']['rotation'] = array(
'#type' => 'textfield',
'#title' => t('Rotation'),
'#default_value' => $this
->getOption('rotation'),
);
$form['options']['zoom'] = array(
'#type' => 'textfield',
'#title' => t('Zoom'),
'#default_value' => $this
->getOption('zoom'),
);
$form['options']['extent'] = array(
'#type' => 'textfield',
'#title' => t('Extent'),
'#default_value' => $this
->getOption('extent'),
);
}