public function ForwardAccessChecker::__construct in Forward 8
Same name and namespace in other branches
- 8.3 src/ForwardAccessChecker.php \Drupal\forward\ForwardAccessChecker::__construct()
- 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\forwardCode
public function __construct(AccountProxyInterface $current_user) {
$this->currentUser = $current_user;
}