You are here

public function OtherView::init in OtherView Filter 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/OtherView.php, line 66

Class

OtherView
Filter content by other view results set.

Namespace

Drupal\other_view_filter\Plugin\views\filter

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  $this->defaultArgs = $view->args;
  $this->valueTitle = $this
    ->t('View: display');
}