You are here

public function GenericDatabase::__construct in Search API 8

Constructs a GenericDatabase object.

Parameters

\Drupal\Core\Database\Connection $database: The connection to the database.

\Drupal\Component\Transliteration\TransliterationInterface $transliterator: The transliteration service to use.

File

modules/search_api_db/src/DatabaseCompatibility/GenericDatabase.php, line 36

Class

GenericDatabase
Represents any database for which no specifics are known.

Namespace

Drupal\search_api_db\DatabaseCompatibility

Code

public function __construct(Connection $database, TransliterationInterface $transliterator) {
  $this->database = $database;
  $this->transliterator = $transliterator;
}