Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UserAuthenticationController.php

function UserAuthenticationController::userIsBlocked

Verifies if the user is blocked.

Parameters

string $name: The username.

Return value

bool TRUE if the user is blocked, otherwise FALSE.

Deprecated

in drupal:10.3.0 and is removed from drupal:12.0.0. There is no replacement.

See also

https://www.drupal.org/node/3425340

File

core/modules/user/src/Controller/UserAuthenticationController.php, line 314

Class

UserAuthenticationController
Provides controllers for login, login status and logout via HTTP requests.

Namespace

Drupal\user\Controller

Code

protected function userIsBlocked($name) {
    @trigger_error(__METHOD__ . ' is deprecated in drupal:10.3.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3425340', E_USER_DEPRECATED);
    return user_is_blocked($name);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal