You are here

public function Condition::setOperator in Search API 8

Sets the operator.

Parameters

string $operator: The new operator.

Return value

$this

Overrides ConditionInterface::setOperator

File

src/Query/Condition.php, line 87

Class

Condition
Represents a single (field operator value) condition in a search query.

Namespace

Drupal\search_api\Query

Code

public function setOperator($operator) {
  $this->operator = $operator;
  return $this;
}