In SwitchUserForm, we are writing good but suddenly we see this procedural - user_load_by_name().
If we dig more we see that it uses entity_load_multiple_by_properties() which is deprecated and will we removed.
So we should update our SwitchUserForm (It doesn't feel good to have procedural in Oops).

There is one more instance of user_load_by_name() in DevelController but then it also contains lots of static variant services so I think, it will be good if we replace user_load_by_name() there with other services in one go.

For now lets make SwitchUserForm ready.

Thoughts ?

CommentFileSizeAuthor
#2 2557087-2.patch2.06 KBjoshi.rohit100
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joshi.rohit100 created an issue. See original summary.

joshi.rohit100’s picture

Status: Active » Needs review
FileSize
2.06 KB
willzyx’s picture

Status: Needs review » Postponed

@joshi.rohit100 thanks to work on this. Since currently the switch form is broken i think we should to pospone this issue to #2560539: Switch user form doesn't work

willzyx’s picture

Status: Postponed » Closed (fixed)

After #2560539: Switch user form doesn't work SwitchUserForm no longer uses user_load_by_name(), so I'm marking this issue as fixed