tmgmt_smartling-8.x-4.11/src/Context/ContextCurrentUserAuth.php
src/Context/ContextCurrentUserAuth.php
<?php
namespace Drupal\tmgmt_smartling\Context;
use Drupal\Core\Session\AccountInterface;
use Drupal\tmgmt_smartling\Exceptions\WrongUsernameException;
class ContextCurrentUserAuth {
/**
* @var AccountInterface
*/
protected $currentAccount;
/**
* ContextCurrentUserAuth constructor.
* @param AccountInterface $account
*/
public function __construct(AccountInterface $account) {
$this->currentAccount = $account;
}
public function getCurrentAccount() {
return $this->currentAccount;
}
}
