You are here

public function PremiumContent::setDatabase in Node Option Premium 8

Sets the database connection.

Parameters

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

Return value

$this

File

src/Plugin/search_api/processor/PremiumContent.php, line 80

Class

PremiumContent
Adds premium information to the indexes.

Namespace

Drupal\nopremium\Plugin\search_api\processor

Code

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