You are here

public function PrivateMessageMapper::__construct in Private Message 8

Same name and namespace in other branches
  1. 8.2 src/Mapper/PrivateMessageMapper.php \Drupal\private_message\Mapper\PrivateMessageMapper::__construct()

Constructs a PrivateMessageMapper object.

Parameters

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

\Drupal\Session\AccountProxyInterface $currentUser: The current user.

File

src/Mapper/PrivateMessageMapper.php, line 37

Class

PrivateMessageMapper
Interface for the Private Message Mapper class.

Namespace

Drupal\private_message\Mapper

Code

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