You are here

public function BackendTrait::setBackend in Search API Solr 8.3

Same name and namespace in other branches
  1. 4.x src/Controller/BackendTrait.php \Drupal\search_api_solr\Controller\BackendTrait::setBackend()

Sets the Search API server backend.

Parameters

\Drupal\search_api_solr\SolrBackendInterface $backend: The Search API server backend.

1 call to BackendTrait::setBackend()
BackendTrait::setServer in src/Controller/BackendTrait.php
Sets the Search API server and calls setBackend() afterwards.

File

src/Controller/BackendTrait.php, line 62

Class

BackendTrait
Provides a listing of Solr Entities.

Namespace

Drupal\search_api_solr\Controller

Code

public function setBackend(SolrBackendInterface $backend) {
  $this->backend = $backend;
  $this->reset = TRUE;
}