You are here

public function KML::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/KML/KML.php, line 23
Source: KML.

Class

KML
Class KML.

Namespace

Drupal\openlayers\Plugin\Source\KML

Code

public function optionsForm(array &$form, array &$form_state) {
  $form['options']['url'] = array(
    '#title' => t('URL'),
    '#type' => 'textfield',
    '#default_value' => $this
      ->getOption('url'),
  );
  $form['options']['extract_styles'] = array(
    '#title' => t('Extract styles'),
    '#description' => t('Should styles be extracted from the KML?'),
    '#type' => 'checkbox',
    '#default_value' => $this
      ->getOption('extract_styles', FALSE),
  );
}