You are here

public function HiddenLanguageSubscriber::__construct in Hidden Language 2.x

Same name and namespace in other branches
  1. 8 src/EventSubscriber/HiddenLanguageSubscriber.php \Drupal\hidden_language\EventSubscriber\HiddenLanguageSubscriber::__construct()

Constructs a new hidden language subscriber.

Parameters

\Drupal\Core\Session\AccountInterface $account: The current user.

File

src/EventSubscriber/HiddenLanguageSubscriber.php, line 30

Class

HiddenLanguageSubscriber

Namespace

Drupal\hidden_language\EventSubscriber

Code

public function __construct(AccountInterface $account) {
  $this->account = $account;
}