You are here

public function Condition::__toString in Search API 8

Implements the magic __toString() method to simplify debugging.

File

src/Query/Condition.php, line 95

Class

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

Namespace

Drupal\search_api\Query

Code

public function __toString() {
  return "{$this->field} {$this->operator} " . str_replace("\n", "\n    ", var_export($this->value, TRUE));
}