Entity label callback.
This label callback has langcode for security reasons. The username is the visual identifier for a user and needs to be consistent in all languages.
$entity_type: The entity type.
$entity: The entity object.
The name of the user.
function user_label($entity_type, $entity) {
return user_format_name($entity);
}