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