protected function EntityQuery::isUnaryOperator in GraphQL 8.3
Checks if an operator is a unary operator.
Parameters
string $operator: The query operator to check against.
Return value
bool TRUE if the given operator is unary, FALSE otherwise.
1 call to EntityQuery::isUnaryOperator()
- EntityQuery::buildFilterConditions in modules/
graphql_core/ src/ Plugin/ GraphQL/ Fields/ EntityQuery/ EntityQuery.php - Recursively builds the filter condition groups.
File
- modules/
graphql_core/ src/ Plugin/ GraphQL/ Fields/ EntityQuery/ EntityQuery.php, line 387
Class
- EntityQuery
- @GraphQLField( id = "entity_query", secure = false, type = "EntityQueryResult", arguments = { "filter" = "EntityQueryFilterInput", "sort" = "[EntityQuerySortInput]", "offset" =…
Namespace
Drupal\graphql_core\Plugin\GraphQL\Fields\EntityQueryCode
protected function isUnaryOperator($operator) {
$unary = [
"=",
"<>",
"<",
"<=",
">",
">=",
"LIKE",
"NOT LIKE",
];
return in_array($operator, $unary);
}