You are here

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

Class

Attribution
Class Attribution.

Namespace

Drupal\openlayers\Plugin\Control\Attribution

Code

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