You are here

public function Selective::init in Views Selective Filters 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/Selective.php, line 38

Class

Selective
Views filter handler for selective values.

Namespace

Drupal\views_selective_filters\Plugin\views\filter

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  $this->options['exposed'] = TRUE;
  $this->realField = $this->options['selective_display_field'];
}