public function UserHelpTabAccess::access in Lightweight Directory Access Protocol (LDAP) 8.3
Same name and namespace in other branches
- 8.4 ldap_authentication/src/Access/UserHelpTabAccess.php \Drupal\ldap_authentication\Access\UserHelpTabAccess::access()
File
- ldap_authentication/
src/ Access/ UserHelpTabAccess.php, line 51
Class
- UserHelpTabAccess
- Checks whether the use is allowed to see the help tab.
Namespace
Drupal\ldap_authentication\AccessCode
public function access(AccountInterface $account) {
if ($this
->accessLdapHelpTab()) {
return AccessResultAllowed::allowed();
}
else {
return AccessResultAllowed::forbidden();
}
}