Closed (outdated)
Project:
Drupal core
Version:
9.4.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
28 Nov 2010 at 21:40 UTC
Updated:
23 Nov 2022 at 00:22 UTC
Jump to comment: Most recent
Comments
Comment #1
dave reidComment #2
dave reidThis could help centralize some code in both Real Name and Automatic Node Title
Comment #3
fago>Since users are just simple entities, we don't have any need for format_username() to exist now that we have entity_label().
+1
Problem with hook_entity_label_alter() is that we usually want to have the label queryable, what doesn't work with on the fly alteration. For that, the approach of auto-nodetitle (generate label on save) makes much sense to me + there is already http://drupal.org/project/auto_entitylabel - maybe that approach would work for that use case as well?
Comment #15
quietone commentedI grepped Drupal 10.0.x for the function names in the title and none were found. They were likely removed in the following issues
#1227942: Rename format_username() now that it's in user.module
#1615240: Remove entity_label() in favor of EntityInterface::label()