You are here

public function OL3LayerSwitcher::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/Control/OL3LayerSwitcher/OL3LayerSwitcher.php, line 25
Control: Attribution.

Class

OL3LayerSwitcher
Class OL3LayerSwitcher.

Namespace

Drupal\openlayers_library\Plugin\Control\OL3LayerSwitcher

Code

public function optionsForm(array &$form, array &$form_state) {
  $form['options']['collapsible'] = array(
    '#type' => 'checkbox',
    '#title' => t('Collapsible'),
    '#default_value' => $this
      ->getOption('collapsible'),
  );
}