You are here

public function Pagerer::buildOptionsForm in Pagerer 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/pager/Pagerer.php \Drupal\pagerer\Plugin\views\pager\Pagerer::buildOptionsForm()

Same as 'Full', plus preset, less tags and quantity.

Overrides Full::buildOptionsForm

File

src/Plugin/views/pager/Pagerer.php, line 133

Class

Pagerer
The views plugin to handle Pagerer pager.

Namespace

Drupal\pagerer\Plugin\views\pager

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  $form['preset'] = [
    '#type' => 'select',
    '#title' => $this
      ->t('Preset'),
    '#description' => $this
      ->t("Select the Pagerer preset to use to render the pager."),
    '#options' => $this->presetsList
      ->listOptions(),
    '#default_value' => $this->options['preset'],
  ];
  parent::buildOptionsForm($form, $form_state);
  unset($form['tags'], $form['quantity']);
}