public function PrivateMessageMapper::__construct in Private Message 8.2
Same name and namespace in other branches
- 8 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\MapperCode
public function __construct(Connection $database, AccountProxyInterface $currentUser) {
$this->database = $database;
$this->currentUser = $currentUser;
}