function Search::init

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 FilterPluginBase::init

File

core/modules/search/src/Plugin/views/filter/Search.php, line 53

Class

Search
Filter handler for search keywords.

Namespace

Drupal\search\Plugin\views\filter

Code

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

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