You are here

public function Random::optionsForm in Openlayers 7.3

Same name in this branch
  1. 7.3 modules/openlayers_library/src/Plugin/Style/Random/Random.php \Drupal\openlayers_library\Plugin\Style\Random\Random::optionsForm()
  2. 7.3 modules/openlayers_library/src/Plugin/Source/Random/Random.php \Drupal\openlayers_library\Plugin\Source\Random\Random::optionsForm()

@TODO What is this return? If it is the form, why is form by reference?

Overrides Base::optionsForm

File

modules/openlayers_library/src/Plugin/Style/Random/Random.php, line 23
Style: Random.

Class

Random
Class Random.

Namespace

Drupal\openlayers_library\Plugin\Style\Random

Code

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