protected function UserAuthenticationController::userIsBlocked in Drupal 9
Same name and namespace in other branches
- 8 core/modules/user/src/Controller/UserAuthenticationController.php \Drupal\user\Controller\UserAuthenticationController::userIsBlocked()
- 10 core/modules/user/src/Controller/UserAuthenticationController.php \Drupal\user\Controller\UserAuthenticationController::userIsBlocked()
Verifies if the user is blocked.
Parameters
string $name: The username.
Return value
bool TRUE if the user is blocked, otherwise FALSE.
2 calls to UserAuthenticationController::userIsBlocked()
- UserAuthenticationController::login in core/
modules/ user/ src/ Controller/ UserAuthenticationController.php - Logs in a user.
- UserAuthenticationController::resetPassword in core/
modules/ user/ src/ Controller/ UserAuthenticationController.php - Resets a user password.
File
- core/
modules/ user/ src/ Controller/ UserAuthenticationController.php, line 285
Class
- UserAuthenticationController
- Provides controllers for login, login status and logout via HTTP requests.
Namespace
Drupal\user\ControllerCode
protected function userIsBlocked($name) {
return user_is_blocked($name);
}