You are here

public function Query::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/Query/Query.php, line 251

Class

Query
Provides a standard implementation for a Search API query.

Namespace

Drupal\search_api\Query

Code

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