You are here

public function SearchApiDate::operators in Search API 8

Defines the operators supported by this filter.

Return value

array[] An associative array of operators, keyed by operator ID, with information about that operator:

  • title: The full title of the operator (translated).
  • short: The short title of the operator (translated).
  • method: The method to call for this operator in query().
  • values: The number of values that this operator expects/needs.

Overrides NumericFilter::operators

1 call to SearchApiDate::operators()
SearchApiDate::acceptExposedInput in src/Plugin/views/filter/SearchApiDate.php
Do some minor translation of the exposed input

File

src/Plugin/views/filter/SearchApiDate.php, line 60

Class

SearchApiDate
Defines a filter for filtering on dates.

Namespace

Drupal\search_api\Plugin\views\filter

Code

public function operators() {
  $operators = parent::operators();
  unset($operators['regular_expression']);
  return $operators;
}