public function EntityCondition::__construct in JSON:API 8
Same name and namespace in other branches
- 8.2 src/Query/EntityCondition.php \Drupal\jsonapi\Query\EntityCondition::__construct()
Constructs a new EntityCondition object.
File
- src/
Query/ EntityCondition.php, line 50
Class
- EntityCondition
- A condition object for the EntityQuery.
Namespace
Drupal\jsonapi\QueryCode
public function __construct($field, $value, $operator = NULL) {
$this->field = $field;
$this->value = $value;
$this->operator = $operator ? $operator : '=';
}