Change record status: 
Project: 
Introduced in branch: 
8.x
Description: 

While converting user entity SQL queries to the Entity Query API, the user_is_blocked() function was changed to return a boolean value, as previously it returned a partial entity object, which is no longer allowed.

The new return value is more consistent with the function name and should slightly improve DX. Strictly speaking, this is not a backward-compatible API change, however code making a sensible usage of this API function should not need changes:

D7

<?php>
if (user_is_blocked($name)) {
  // do stuff ..
}
?>

D8

<?php>
if (user_is_blocked($name)) {
  // do stuff ..
}
?>

Note: in the same issue the UserStorageController::updateLastLoginTimestamp() method was introduced to avoid requiring a full user save and keep the operation storage-agnostic.

Impacts: 
Module developers