You are here

protected function SearchApiAlgoliaBackend::setAlgoliaIndex 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::setAlgoliaIndex()
  2. 2.0.x src/Plugin/search_api/backend/SearchApiAlgoliaBackend.php \Drupal\search_api_algolia\Plugin\search_api\backend\SearchApiAlgoliaBackend::setAlgoliaIndex()

Set the Algolia index.

1 call to SearchApiAlgoliaBackend::setAlgoliaIndex()
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 604

Class

SearchApiAlgoliaBackend
Class SearchApiAlgoliaBackend.

Namespace

Drupal\search_api_algolia\Plugin\search_api\backend

Code

protected function setAlgoliaIndex($index) {
  $this->algoliaIndex = $index;
}