You are here

public function SearchApiAlgoliaBackend::getModuleHandler in Search API Algolia 8

Same name and namespace in other branches
  1. 3.0.x src/Plugin/search_api/backend/SearchApiAlgoliaBackend.php \Drupal\search_api_algolia\Plugin\search_api\backend\SearchApiAlgoliaBackend::getModuleHandler()
  2. 2.0.x src/Plugin/search_api/backend/SearchApiAlgoliaBackend.php \Drupal\search_api_algolia\Plugin\search_api\backend\SearchApiAlgoliaBackend::getModuleHandler()

Returns the module handler to use for this plugin.

Return value

\Drupal\Core\Extension\ModuleHandlerInterface The module handler.

File

src/Plugin/search_api/backend/SearchApiAlgoliaBackend.php, line 564

Class

SearchApiAlgoliaBackend
Class SearchApiAlgoliaBackend.

Namespace

Drupal\search_api_algolia\Plugin\search_api\backend

Code

public function getModuleHandler() {
  return $this->moduleHandler ?: \Drupal::moduleHandler();
}