You are here

public function SearchApiQuery::alter in Search API 8

Let modules modify the query just prior to finalizing it.

Parameters

view $view: The view which is executed.

Overrides QueryPluginBase::alter

File

src/Plugin/views/query/SearchApiQuery.php, line 536

Class

SearchApiQuery
Defines a Views query class for searching on Search API indexes.

Namespace

Drupal\search_api\Plugin\views\query

Code

public function alter(ViewExecutable $view) {
  $this
    ->getModuleHandler()
    ->invokeAll('views_query_alter', [
    $view,
    $this,
  ]);
}