You are here

public function QueryActivity::__construct in Activity 8

Constructs a QueryActivity object.

Parameters

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

\Drupal\Core\Session\AccountProxyInterface $currentUser: A current user instance.

File

src/QueryActivity.php, line 38

Class

QueryActivity
Provides queries for activity.

Namespace

Drupal\activity

Code

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