public function W3CTokenManager::__construct in W3C Validator 8
Constructs a W3CTokenManager object.
Parameters
\Drupal\Core\Database\Connection $database: The active database connection.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
File
- src/
W3CTokenManager.php, line 36
Class
- W3CTokenManager
- Token manager: allow to be logged as a user from URL.
Namespace
Drupal\w3c_validatorCode
public function __construct(Connection $database, AccountInterface $current_user) {
$this->database = $database;
$this->currentUser = $current_user;
}