diff --git a/core/modules/user/user.module b/core/modules/user/user.module index f48f0fd..6da86a4 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -464,9 +464,8 @@ function user_access($string, AccountInterface $account = NULL) { * @param $name * A string containing a name of the user. * - * @return array - * An array containing the matching username or an empty array if the user - * is not blocked + * @return bool + * TRUE if the user is blocked, FALSE otherwise. */ function user_is_blocked($name) { return \Drupal::entityQuery('user')