public function Stamen::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/ Source/ Stamen/ Stamen.php, line 23 - Source: Stamen.
Class
- Stamen
- Class Stamen.
Namespace
Drupal\openlayers\Plugin\Source\StamenCode
public function optionsForm(array &$form, array &$form_state) {
$form['options']['layer'] = array(
'#title' => t('Source type'),
'#type' => 'select',
'#default_value' => $this
->getOption('layer', 'osm'),
'#options' => array(
'terrain-labels' => 'Terrain labels',
'watercolor' => 'Watercolor',
),
);
}