You are here

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

Class

Graticule
Class Graticule.

Namespace

Drupal\openlayers\Plugin\Component\Graticule

Code

public function optionsForm(array &$form, array &$form_state) {
  $form['options']['rgba'] = array(
    '#type' => 'textfield',
    '#title' => t('RGBA'),
    '#default_value' => $this
      ->getOption('rgba', '0, 0, 0, 0.2'),
    '#description' => t('RGBA, a string of 4 numbers, separated by a comma.'),
  );
  $form['options']['width'] = array(
    '#type' => 'textfield',
    '#title' => t('Width'),
    '#default_value' => $this
      ->getOption('width', 2),
    '#description' => t('Width'),
  );
  $form['options']['lineDash'] = array(
    '#type' => 'textfield',
    '#title' => t('Line dash'),
    '#default_value' => $this
      ->getOption('lineDash', '0.5, 4'),
    '#description' => t('Line dash, a string of 2 numbers, separated by a comma.'),
  );
}