You are here

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

Class

XYZ
Class XYZ.

Namespace

Drupal\openlayers\Plugin\Source\XYZ

Code

public function optionsForm(array &$form, array &$form_state) {
  $form['options']['url'] = array(
    '#title' => t('URL(s)'),
    '#type' => 'textarea',
    '#default_value' => $this
      ->getOption('url', ''),
  );
  $form['options']['crossOrigin'] = array(
    '#title' => t('crossOrigin'),
    '#type' => 'textfield',
    '#default_value' => $this
      ->getOption('crossOrigin', NULL),
  );
}