You are here

public function Fulltext::operatorOptions in Name Field 8

Build strings from the operators() for 'select' options.

Overrides FilterPluginBase::operatorOptions

File

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

Class

Fulltext
Filter by fulltext search.

Namespace

Drupal\name\Plugin\views\filter

Code

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