You are here

public function UserHelpTabAccess::__construct in Lightweight Directory Access Protocol (LDAP) 8.3

Same name and namespace in other branches
  1. 8.4 ldap_authentication/src/Access/UserHelpTabAccess.php \Drupal\ldap_authentication\Access\UserHelpTabAccess::__construct()

Constructor.

File

ldap_authentication/src/Access/UserHelpTabAccess.php, line 22

Class

UserHelpTabAccess
Checks whether the use is allowed to see the help tab.

Namespace

Drupal\ldap_authentication\Access

Code

public function __construct(ConfigFactoryInterface $config_factory, AccountInterface $current_user) {
  $this->config = $config_factory
    ->get('ldap_authentication.settings');
  $this->currentUser = $current_user;
}