You are here

public function Database::setKeyValueStore in Search API 8

Sets the key-value store to use.

Parameters

\Drupal\Core\KeyValueStore\KeyValueStoreInterface $key_value_store: The key-value store.

Return value

$this

File

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

Class

Database
Indexes and searches items using the database.

Namespace

Drupal\search_api_db\Plugin\search_api\backend

Code

public function setKeyValueStore(KeyValueStoreInterface $key_value_store) {
  $this->keyValueStore = $key_value_store;
  return $this;
}