Skip to content
Snippets Groups Projects
Commit 5250997d authored by Jess's avatar Jess
Browse files

Issue #2311219 by Mile23, a_thakur, vadim.hirbu, undertext, xjm, cilefen,...

Issue #2311219 by Mile23, a_thakur, vadim.hirbu, undertext, xjm, cilefen, damiankloip, daffie: Remove references to function user_format_name() from documentation
parent 31c57605
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -107,15 +107,15 @@ function hook_user_cancel_methods_alter(&$methods) {
*
* Called by $account->getDisplayName() to allow modules to alter the username
* that is displayed. Can be used to ensure user privacy in situations where
* $account->name is too revealing.
* $account->getDisplayName() is too revealing.
*
* @param string $name
* The string that $account->getDisplayName() will return.
*
* @param $account
* The account object passed to user_format_name().
* The account object the name belongs to.
*
* @see $account->getDisplayName()
* @see \Drupal\Core\Session\AccountInterface->getDisplayName()
*/
function hook_user_format_name_alter(&$name, $account) {
// Display the user's uid instead of name.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment