Meta issue: #2205673: [meta] Remove all @deprecated functions marked "remove before 8.0"
Remove the usage of user_format_name()
Occurrence of the function
[ashish@xeon:~/proj/self/d8/data/drupal8]$grep user_format_name -r *
core/modules/file/src/Tests/FileTokenReplaceTest.php: $tests['[file:owner]'] = String::checkPlain(user_format_name($this->admin_user));
core/modules/user/user.module:function user_format_name(AccountInterface $account) {
core/modules/user/src/Plugin/entity_reference/selection/UserSelection.php: ->where(str_replace('anonymous_name', ':anonymous_name', (string) $value_part), $value_part->arguments() + array(':anonymous_name' => user_format_name(user_load(0))))
core/modules/user/src/Plugin/views/field/Name.php: return user_format_name($account);
core/modules/user/src/Tests/UserTokenReplaceTest.php: $tests['[user:name]'] = String::checkPlain(user_format_name($account));
core/modules/user/src/Tests/UserTokenReplaceTest.php: $tests['[current-user:name]'] = String::checkPlain(user_format_name($global_account));
core/modules/user/src/Tests/UserTokenReplaceTest.php: $tests['[user:name]'] = user_format_name($account);
core/modules/user/src/Tests/UserTokenReplaceTest.php: $tests['[current-user:name]'] = user_format_name($global_account);
core/modules/user/src/Entity/User.php: * label_callback = "user_format_name",
core/modules/user/src/Entity/User.php: \Drupal::moduleHandler()->alter('user_format_name', $name, $this);
core/modules/user/user.api.php: * Called by user_format_name() to allow modules to alter the username that's
core/modules/user/user.api.php: * The string that user_format_name() will return.
core/modules/user/user.api.php: * The account object passed to user_format_name().
core/modules/user/user.api.php: * @see user_format_name()
core/modules/user/user.api.php:function hook_user_format_name_alter(&$name, $account) {
core/modules/user/user.tokens.inc: $name = user_format_name($account);
core/modules/system/system.api.php: '%username' => user_format_name($account),
core/modules/contact/contact.module: '!sender-name' => user_format_name($sender),
core/modules/contact/contact.module: '!recipient-name' => user_format_name($params['recipient']),
core/includes/bootstrap.inc: * $text = t("@name's blog", array('@name' => user_format_name($account)));
core/lib/Drupal/Core/Session/UserSession.php: \Drupal::moduleHandler()->alter('user_format_name', $name, $this);
core/lib/Drupal/Core/Session/AccountInterface.php: * hook_user_format_name_alter(&$name, $account).
core/lib/Drupal/Core/Session/AccountInterface.php: * @see hook_user_format_name_alter()