You are here

public function TermReference::init in EntityFieldQuery Views Backend 8

Overrides \Drupal\views\Plugin\views\HandlerBase::init().

Provide some extra help to get the operator/value easier to use.

This likely has to be overridden by filters which are more complex than simple operator/value.

Overrides InOperator::init

File

src/Plugin/views/filter/TermReference.php, line 26
Contains \Drupal\efq_views\Plugin\views\filter\FieldInOperator.

Class

TermReference
Filter by term id.

Namespace

Drupal\efq_views\Plugin\views\filter

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $options);
  if (!empty($this->definition['vocabulary'])) {
    $this->options['vocabulary'] = $this->definition['vocabulary'];
  }
}