You are here

public function ViewsTestField::setQuery in Search API 8

Sets the query object.

Parameters

\Drupal\search_api\Plugin\views\query\SearchApiQuery $query: The query object.

Return value

$this

File

tests/src/Kernel/ViewsTestField.php, line 50

Class

ViewsTestField
Provides a field plugin for testing.

Namespace

Drupal\Tests\search_api\Kernel

Code

public function setQuery(SearchApiQuery $query) {
  $this->query = $query;
  return $this;
}