class EntityCondition in JSON:API Search API 8
A condition object for the EntityQuery.
Hierarchy
- class \Drupal\jsonapi\Query\EntityCondition
- class \Drupal\jsonapi_search_api\Query\EntityCondition
Expanded class hierarchy of EntityCondition
File
- src/
Query/ EntityCondition.php, line 10
Namespace
Drupal\jsonapi_search_api\QueryView source
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',
];
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityCondition:: |
public static | property |
The allowed condition operators. Overrides EntityCondition:: |
|
EntityCondition:: |
protected | property | The field to be evaluated. | |
EntityCondition:: |
protected | property | The condition operator. | |
EntityCondition:: |
protected | property | The value against which the field should be evaluated. | |
EntityCondition:: |
public static | function | Creates an EntityCondition object from a query parameter. | |
EntityCondition:: |
public | function | The field to be evaluated. | |
EntityCondition:: |
public | function | The comparison operator to use for the evaluation. | |
EntityCondition:: |
constant | The operator key in the condition: filter[lorem][condition][<operator>]. | ||
EntityCondition:: |
constant | The field key in the filter condition: filter[lorem][condition][<field>]. | ||
EntityCondition:: |
protected static | function | Validates the filter has the required fields. | |
EntityCondition:: |
public | function | The value against which the condition should be evaluated. | |
EntityCondition:: |
constant | The value key in the filter condition: filter[lorem][condition][<value>]. | ||
EntityCondition:: |
public | function | Constructs a new EntityCondition object. |