public function OpenlayersMap::optionsForm in Openlayers 7.3
Method for returning the form elements to display for this tab type on the admin form.
Parameters
$delta Integer representing this tab's position in the tabs array.:
$qt An object representing the Quicktabs instance that the tabs are: being built for.
Overrides QuickContent::optionsForm
File
- modules/
openlayers_quicktabs/ plugins/ quicktabs/ OpenlayersMap.php, line 25 - Openlayers quicktab plugin.
Class
- OpenlayersMap
- Class for tab content of type "openlayers_map".
Code
public function optionsForm($delta, $qt) {
$tab = $this->settings;
$form = array();
$form['Openlayers-map']['map'] = array(
'#type' => 'select',
'#title' => t('Openlayers map'),
'#options' => \Drupal\openlayers\Openlayers::loadAllAsOptions('Map'),
"#empty_option" => t('- Select a map -'),
'#default_value' => isset($tab['openlayers_map']) ? $tab['openlayers_map'] : '',
);
return $form;
}