You are here

public static property EntityCondition::$allowedOperators in JSON:API Search API 8

The allowed condition operators.

The operators 'STARTS_WITH', 'CONTAINS', 'ENDS_WITH' are not supported by the Search API module.

Type: string[]

Overrides EntityCondition::$allowedOperators

See also

\Drupal\search_api\Query\ConditionSetInterface

File

src/Query/EntityCondition.php, line 22

Class

EntityCondition
A condition object for the EntityQuery.

Namespace

Drupal\jsonapi_search_api\Query

Code

public static $allowedOperators = [
  '=',
  '<>',
  '>',
  '>=',
  '<',
  '<=',
  'IN',
  'NOT IN',
  'BETWEEN',
  'NOT BETWEEN',
  'IS NULL',
  'IS NOT NULL',
];