You are here

public function Condition::setField in Search API 8

Sets the field.

Parameters

string $field: The new field.

Return value

$this

Overrides ConditionInterface::setField

File

src/Query/Condition.php, line 57

Class

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

Namespace

Drupal\search_api\Query

Code

public function setField($field) {
  $this->field = $field;
  return $this;
}