Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
getUsername() is deprecated. It has to be replaced with getDisplayName()
For reference,
https://api.drupal.org/api/drupal/core!modules!user!src!Entity!User.php/...
I have provided the patch in which all getUsername() functions are replaced with getDisplayName()
Comment | File | Size | Author |
---|---|---|---|
getusername_replaced.patch | 4.35 KB | bhawanac | |
|
Comments
Comment #2
willzyx CreditAttribution: willzyx commented@bhawanac thanks for contributing. Moving to minor since the deprecated method usage affects only tests
Comment #4
willzyx CreditAttribution: willzyx commentedCommitted and pushed to 8.x. Thanks!