You are here

public function SearchApiQuery::setModuleHandler in Search API 8

Sets the module handler.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The new module handler.

Return value

$this

File

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

Class

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

Namespace

Drupal\search_api\Plugin\views\query

Code

public function setModuleHandler(ModuleHandlerInterface $module_handler) {
  $this->moduleHandler = $module_handler;
  return $this;
}