You are here

public function SearchApiAlgoliaBackend::getAlgolia in Search API Algolia 3.0.x

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

Returns the AlgoliaSearch client.

Return value

\Algolia\AlgoliaSearch\SearchClient The algolia instance object.

1 call to SearchApiAlgoliaBackend::getAlgolia()
SearchApiAlgoliaBackend::connect in src/Plugin/search_api/backend/SearchApiAlgoliaBackend.php
Creates a connection to the Algolia Search server as configured.

File

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

Class

SearchApiAlgoliaBackend
Class SearchApiAlgoliaBackend.

Namespace

Drupal\search_api_algolia\Plugin\search_api\backend

Code

public function getAlgolia() {
  return $this->algoliaClient;
}