You are here

public function ContentAccess::setDatabase in Search API 8

Sets the database connection.

Parameters

\Drupal\Core\Database\Connection $database: The new database connection.

Return value

$this

File

src/Plugin/search_api/processor/ContentAccess.php, line 86

Class

ContentAccess
Adds content access checks for nodes and comments.

Namespace

Drupal\search_api\Plugin\search_api\processor

Code

public function setDatabase(Connection $database) {
  $this->database = $database;
  return $this;
}