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()

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bhawanac created an issue. See original summary.

willzyx’s picture

Category: Bug report » Task
Priority: Normal » Minor

@bhawanac thanks for contributing. Moving to minor since the deprecated method usage affects only tests

  • willzyx committed aae5d3c on 8.x-1.x authored by bhawanac
    Issue #2890214 by bhawanac: Replace deprecated method getUsername() with...
willzyx’s picture

Status: Needs review » Fixed

Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.