You are here

public function SearchApiFulltext::operatorOptions in Search API 8

Provide a list of options for the default operator form. Should be overridden by classes that don't override operatorForm

Overrides FilterPluginBase::operatorOptions

File

src/Plugin/views/filter/SearchApiFulltext.php, line 85

Class

SearchApiFulltext
Defines a filter for adding a fulltext search to the view.

Namespace

Drupal\search_api\Plugin\views\filter

Code

public function operatorOptions($which = 'title') {
  $options = [];
  foreach ($this
    ->operators() as $id => $info) {
    $options[$id] = $info[$which];
  }
  return $options;
}