You are here

public function ManyToOne::init in Views (for Drupal 7) 8.3

Same name in this branch
  1. 8.3 lib/Drupal/views/Plugin/views/filter/ManyToOne.php \Drupal\views\Plugin\views\filter\ManyToOne::init()
  2. 8.3 lib/Drupal/views/Plugin/views/argument/ManyToOne.php \Drupal\views\Plugin\views\argument\ManyToOne::init()

Overrides Drupal\views\Plugin\views\filter\FilterPluginBase::init().

Overrides InOperator::init

1 call to ManyToOne::init()
TaxonomyIndexTid::init in lib/Views/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php
Overrides Drupal\views\Plugin\views\filter\FilterPluginBase::init().
1 method overrides ManyToOne::init()
TaxonomyIndexTid::init in lib/Views/taxonomy/Plugin/views/filter/TaxonomyIndexTid.php
Overrides Drupal\views\Plugin\views\filter\FilterPluginBase::init().

File

lib/Drupal/views/Plugin/views/filter/ManyToOne.php, line 37
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

public function init(ViewExecutable $view, &$options) {
  parent::init($view, $options);
  $this->helper = new ManyToOneHelper($this);
}