You are here

public function Database::getDatabase in Search API 8

Retrieves the database connection used by this backend.

Return value

\Drupal\Core\Database\Connection The database connection.

File

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

Class

Database
Indexes and searches items using the database.

Namespace

Drupal\search_api_db\Plugin\search_api\backend

Code

public function getDatabase() {
  return $this->database;
}