You are here

public function Database::getKeyValueStore in Search API 8

Retrieves the key-value store to use.

Return value

\Drupal\Core\KeyValueStore\KeyValueStoreInterface The key-value store.

1 call to Database::getKeyValueStore()
Database::preDelete in modules/search_api_db/src/Plugin/search_api/backend/Database.php
Notifies the backend that the server is about to be deleted.

File

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

Class

Database
Indexes and searches items using the database.

Namespace

Drupal\search_api_db\Plugin\search_api\backend

Code

public function getKeyValueStore() {
  return $this->keyValueStore ?: \Drupal::keyValue(self::INDEXES_KEY_VALUE_STORE_ID);
}