You are here

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

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

Constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config Factory.

\Drupal\Core\Session\AccountInterface $current_user: Current user.

\Drupal\externalauth\Authmap $external_auth: External auth.

File

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

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, Authmap $external_auth) {
  $this->config = $config_factory
    ->get('ldap_authentication.settings');
  $this->currentUser = $current_user;
  $this->externalAuth = $external_auth;
}