- Merge request !151Draft: Don't format user name for anonymous user (Issue #3279908) → (Open) created by Unnamed author
For an unsaved user entity, $account->getDisplayName() is returning an array of all oidc names. From a type standpoint, that function is supposed to return a string or MarkupInterface. From a functionality standpoint, it's not working as expected.
1. Enable the module (I am on 2.0.0-alpha12) and configure an OIDC client
2. Log in via the client at least once
3. Implement hook_ENTITY_TYPE_presave for the user entity type, and use logger/messenger/devel/etc to dump/export $account->getDisplayName().
4. Create a new user; notice that the debug you added shows an array containing all OIDC names.
Early exit if $account->id() is empty (indicating anonymous user or unsaved entity); I don't think the module is intending or has need to intervene in either case.
None
None
None
Active
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.