Technically, this method will look for the user's backend account (or, if authenticationProviderName is specified,
for the account matching the given authentication provider) and return the account's identifier.
public getUsername ( |
||
$user | ||
$authenticationProviderName | string | |
return | string | The username or null if the given user does not have a backend account |