You are here

function ManyToOne::value_form in Views (for Drupal 7) 8.3

Options form subform for setting options.

This should be overridden by all child classes and it must define $form['value']

Overrides InOperator::value_form

See also

buildOptionsForm()

1 method overrides ManyToOne::value_form()
TaxonomyIndexTid::value_form in lib/Views/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php
Options form subform for setting options.

File

lib/Drupal/views/Plugin/views/filter/ManyToOne.php, line 108
Definition of Drupal\views\Plugin\views\filter\ManyToOne.

Class

ManyToOne
Complex filter to handle filtering for many to one relationships, such as terms (many terms per node) or roles (many roles per user).

Namespace

Drupal\views\Plugin\views\filter

Code

function value_form(&$form, &$form_state) {
  parent::value_form($form, $form_state);
  if (empty($form_state['exposed'])) {
    $this->helper
      ->buildOptionsForm($form, $form_state);
  }
}