function hook_require_login_authcheck_alter in Require Login 8.2
Same name and namespace in other branches
- 8 require_login.api.php \hook_require_login_authcheck_alter()
Alter default authentication checks.
Parameters
array &$default_checks: An array of boolean values indicating authentication status.
1 invocation of hook_require_login_authcheck_alter()
- RequireLoginSubscriber::checkLogin in src/
EventSubscriber/ RequireLoginSubscriber.php - Check login authentication enforcement for current request.
File
- ./
require_login.api.php, line 14 - Hooks for the require_login module.
Code
function hook_require_login_authcheck_alter(array &$default_checks) {
$var1 = $var2 = 'some-value';
// If $var1 equals $var2 then allow unauthenticated access.
$default_checks[] = $var1 == $var2;
}