You are here

protected function Fulltext::operators in Name Field 8

Supported operations.

2 calls to Fulltext::operators()
Fulltext::operatorOptions in src/Plugin/views/filter/Fulltext.php
Build strings from the operators() for 'select' options.
Fulltext::query in src/Plugin/views/filter/Fulltext.php
Add this filter to the query.

File

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

Class

Fulltext
Filter by fulltext search.

Namespace

Drupal\name\Plugin\views\filter

Code

protected function operators() {
  return [
    'contains' => [
      'title' => $this
        ->t('Contains'),
      'short' => $this
        ->t('contains'),
      'method' => 'op_contains',
      'values' => 1,
    ],
    'word' => [
      'title' => $this
        ->t('Contains any word'),
      'short' => $this
        ->t('has word'),
      'method' => 'op_word',
      'values' => 1,
    ],
    'allwords' => [
      'title' => $this
        ->t('Contains all words'),
      'short' => $this
        ->t('has all'),
      'method' => 'op_word',
      'values' => 1,
    ],
  ];
}