Use the user display name instead of the username on the user authoring information in the node edit form

Created on 19 November 2020, about 4 years ago
Updated 20 December 2023, about 1 year ago

Problem/Motivation

When editing a node, the authoring information displays the user account name, the display name should be used instead.

Steps to reproduce

In an installation with some module that implements hook_user_format_name_alter implementation, like Real Name module โ†’ , edit any existing node. The account name is always used as the author name in the node status information, even for users with a different display name.

Proposed resolution

Replace the current call to AccountInterface::getAccountName() by AccountInterface::getDisplayName().
AccountInterface::getDisplayName() will also invoke hook_user_format_name_alter and then user name changes made by modules like "Real Name" will be visible in node edit form as well.

Remaining tasks

Review, tests.

User interface changes

As described in description.

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

๐Ÿ› Bug report
Status

Needs work

Version

11.0 ๐Ÿ”ฅ

Component
Node systemย  โ†’

Last updated 4 days ago

No maintainer
Created by

๐Ÿ‡ช๐Ÿ‡ธSpain manuel.adan ๐ŸŒŒ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024