You are here

public function CalendarPager::buildOptionsForm in Calendar 8

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

Provide a form to edit options for this plugin.

Overrides PluginBase::buildOptionsForm

File

src/Plugin/views/pager/CalendarPager.php, line 130

Class

CalendarPager
The plugin to handle calendar pager.

Namespace

Drupal\calendar\Plugin\views\pager

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['exclude_display'] = [
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Exclude from Display'),
    '#default_value' => $this->options['exclude_display'],
    '#description' => $this
      ->t('Use this option if you only want to display the pager in Calendar Header area.'),
  ];
}