public function InOperator::buildExposeForm

Options form subform for exposed filter options.

Overrides FilterPluginBase::buildExposeForm

See also

buildOptionsForm()

1 call to InOperator::buildExposeForm()
TaxonomyIndexTid::buildExposeForm in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php
Options form subform for exposed filter options.
1 method overrides InOperator::buildExposeForm()
TaxonomyIndexTid::buildExposeForm in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php
Options form subform for exposed filter options.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/filter/InOperator.php, line 82
Definition of Drupal\views\Plugin\views\filter\InOperator.

Class

InOperator
Simple filter to handle matching of multiple options selectable via checkboxes

Namespace

Drupal\views\Plugin\views\filter

Code

public function buildExposeForm(&$form, &$form_state) {
  parent::buildExposeForm($form, $form_state);
  $form['expose']['reduce'] = array(
    '#type' => 'checkbox',
    '#title' => t('Limit list to selected items'),
    '#description' => t('If checked, the only items presented to the user will be the ones selected here.'),
    '#default_value' => !empty($this->options['expose']['reduce']),
  );
}