function ManyToOne::valueForm

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/filter/ManyToOne.php \Drupal\views\Plugin\views\filter\ManyToOne::valueForm()
  2. 8.9.x core/modules/views/src/Plugin/views/filter/ManyToOne.php \Drupal\views\Plugin\views\filter\ManyToOne::valueForm()
  3. 10 core/modules/views/src/Plugin/views/filter/ManyToOne.php \Drupal\views\Plugin\views\filter\ManyToOne::valueForm()

Overrides InOperator::valueForm

2 methods override ManyToOne::valueForm()
EntityReference::valueForm in core/modules/views/src/Plugin/views/filter/EntityReference.php
TaxonomyIndexTid::valueForm in core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php

File

core/modules/views/src/Plugin/views/filter/ManyToOne.php, line 111

Class

ManyToOne
Complex filter to handle filtering for many to one relationships.

Namespace

Drupal\views\Plugin\views\filter

Code

protected function valueForm(&$form, FormStateInterface $form_state) {
    parent::valueForm($form, $form_state);
    if (!$form_state->get('exposed')) {
        $this->helper
            ->buildOptionsForm($form, $form_state);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.