public function Control::buildOptionsForm in Styled Google Map 8.2
Provide a form to edit options for this plugin.
Overrides Text::buildOptionsForm
File
- src/
Plugin/ views/ area/ Control.php, line 53
Class
- Control
- Views area text handler.
Namespace
Drupal\styled_google_map\Plugin\views\areaCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['position'] = [
'#title' => $this
->t('Position of the control'),
'#type' => 'select',
'#default_value' => $this->options['position'],
'#options' => $this
->controlPositions(),
'#description' => $this
->t('For a detailed description on positions visit <a href="@url" target="_blank">Google Maps documentation page</a>', [
'@url' => 'https://developers.google.com/maps/documentation/javascript/controls#ControlPositioning',
]),
];
}