public function SearchApiNumeric::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 SearchApiNumeric::operators()
- SearchApiText::operators in src/
Plugin/ views/ filter/ SearchApiText.php - Defines the operators supported by this filter.
1 method overrides SearchApiNumeric::operators()
- SearchApiText::operators in src/
Plugin/ views/ filter/ SearchApiText.php - Defines the operators supported by this filter.
File
- src/
Plugin/ views/ filter/ SearchApiNumeric.php, line 29
Class
- SearchApiNumeric
- Defines a filter for filtering on numeric values.
Namespace
Drupal\search_api\Plugin\views\filterCode
public function operators() {
$operators = parent::operators();
unset($operators['regular_expression']);
return $operators;
}