function UserAuthenticationController::userIsBlocked

Same name and namespace in other branches
  1. 11.x 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.

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\Controller

Code

protected function userIsBlocked($name) {
  return user_is_blocked($name);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.