You are here

public function ForwardAccessChecker::__construct in Forward 8

Same name and namespace in other branches
  1. 8.3 src/ForwardAccessChecker.php \Drupal\forward\ForwardAccessChecker::__construct()
  2. 8.2 src/ForwardAccessChecker.php \Drupal\forward\ForwardAccessChecker::__construct()

Constructs a ForwardAccessChecker object.

Parameters

\Drupal\Core\Session\AccountProxyInterface: The current user service.

File

src/ForwardAccessChecker.php, line 26

Class

ForwardAccessChecker
Defines a class for checking whether a Forward link or form can be diplayed within a given context.

Namespace

Drupal\forward

Code

public function __construct(AccountProxyInterface $current_user) {
  $this->currentUser = $current_user;
}