function ForumIndexStorage::__construct

Same name and namespace in other branches
  1. 9 core/modules/forum/src/ForumIndexStorage.php \Drupal\forum\ForumIndexStorage::__construct()
  2. 8.9.x core/modules/forum/src/ForumIndexStorage.php \Drupal\forum\ForumIndexStorage::__construct()

Constructs a ForumIndexStorage object.

Parameters

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

File

core/modules/forum/src/ForumIndexStorage.php, line 27

Class

ForumIndexStorage
Handles CRUD operations to {forum_index} table.

Namespace

Drupal\forum

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.