user_user_view_alter(array &$build, UserInterface $account, EntityViewDisplayInterface $display)
Implements hook_ENTITY_TYPE_view_alter() for user entities.
This function adds a default alt tag to the user_picture field to maintain accessibility.
File
core/modules/user/user.module, line 387 Enables the user registration and login system.
Code
function user_user_view_alter(array &$build, UserInterface $account, EntityViewDisplayInterface $display) {
if (user_picture_enabled() &&a