You are here

public function LanguageAccessSubscriber::__construct in Language access 8

Constructs LanguageAccess Subscriber.

Parameters

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

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

File

src/EventSubscriber/LanguageAccessSubscriber.php, line 51

Class

LanguageAccessSubscriber
Redirect .html pages to corresponding Node page.

Namespace

Drupal\language_access\EventSubscriber

Code

public function __construct(AccountInterface $current_user, LanguageManagerInterface $language_manager, RequestStack $request_stack) {
  $this->currentUser = $current_user;
  $this->languageManager = $language_manager;
  $this->requestStack = $request_stack;
}