You are here

public function Database::setModuleHandler in Search API 8

Sets the module handler to use for this plugin.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to use for this plugin.

Return value

$this

File

modules/search_api_db/src/Plugin/search_api/backend/Database.php, line 264

Class

Database
Indexes and searches items using the database.

Namespace

Drupal\search_api_db\Plugin\search_api\backend

Code

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