📅  最后修改于: 2022-03-11 14:54:44.339000             🧑  作者: Mango
function user_load($uid, $reset = FALSE) {
if ($reset) {
\Drupal::entityManager()
->getStorage('user')
->resetCache(array(
$uid,
));
}
return User::load($uid);
}