You are here

public function Scroller::buildOptionsForm in Openlayers 8.4

Provide a form to edit options for this plugin.

Overrides StylePluginBase::buildOptionsForm

File

src/Plugin/views/style/Scroller.php, line 40
Definition of Drupal\my_scroller\Plugin\views\style\Scroller.

Class

Scroller
Style plugin to render listing.

Namespace

Drupal\openlayers\Plugin\views\style

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['height'] = array(
    '#type' => 'textfield',
    '#title' => $this
      ->t('Height'),
    '#description' => $this
      ->t('Default height of header.'),
    '#size' => '6',
    '#default_value' => $this->options['height'],
    '#required' => TRUE,
    '#field_suffix' => 'px',
  );
}