You are here

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

Class

Translate
Class Translate.

Namespace

Drupal\openlayers\Plugin\Interaction\Translate

Code

public function optionsForm(array &$form, array &$form_state) {
  $form['options']['select'] = array(
    '#type' => 'select',
    '#title' => t('Select interaction'),
    '#empty_option' => t('- Select an Interaction -'),
    '#default_value' => $this
      ->getOption('select', ''),
    '#description' => t('Select the select interaction.'),
    '#options' => Openlayers::loadAllAsOptions('Interaction'),
    '#required' => TRUE,
  );
}