Problem/Motivation
On the user pages (e.g. password reset page - after click on the password reset link), the user name is displayed instead of User's Display name. \Drupal\user\UserInterface::getDisplayName() should alway used when a user name is shown to the user (not in the watchdog log).
But now, the user does only see the technical name on the password reset page. This is confusing.
Proposed resolution
Use \Drupal\user\UserInterface::getDisplayName()
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | getDisplayName-2801645-7.patch | 44.84 KB | shashikant_chauhan |
| #7 | interdiff-2801645-5-7.txt | 1.32 KB | shashikant_chauhan |
| #5 | getDisplayName-2801645-5.patch | 45.24 KB | shashikant_chauhan |
Comments
Comment #2
hardikpandya commentedComment #3
hardikpandya commentedComment #4
shashikant_chauhan commentedComment #5
shashikant_chauhan commentedAdding patch.
Comment #7
shashikant_chauhan commentedComment #9
duaelfrThank you for your contribution. Beware of duplication with #2629286: Use getDisplayName() for user names consistently, though.
I'm not confident enough to decide which of your issues should be closed in favor of the other. Could you have a look there and see how you can converge?
Comment #10
Lassay commentedThank you for your contribution. It does exactly what I needed and it seems to work perfectly fine.
Comment #11
hass commented