You are here

EntityCondition.php in JSON:API Search API 8

File

src/Query/EntityCondition.php
View source
<?php

namespace Drupal\jsonapi_search_api\Query;

use Drupal\jsonapi\Query\EntityCondition as BaseEntityCondition;

/**
 * A condition object for the EntityQuery.
 */
class EntityCondition extends BaseEntityCondition {

  /**
   * The allowed condition operators.
   *
   * The operators 'STARTS_WITH', 'CONTAINS', 'ENDS_WITH' are not supported by
   * the Search API module.
   *
   * @var string[]
   *
   * @see \Drupal\search_api\Query\ConditionSetInterface
   */
  public static $allowedOperators = [
    '=',
    '<>',
    '>',
    '>=',
    '<',
    '<=',
    'IN',
    'NOT IN',
    'BETWEEN',
    'NOT BETWEEN',
    'IS NULL',
    'IS NOT NULL',
  ];

}

Classes

Namesort descending Description
EntityCondition A condition object for the EntityQuery.