projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
fa39e0ffb95835ada4c47ae8f40288300134d106
[yaffs-website]
/
vendor
/
chi-teck
/
drupal-code-generator
/
templates
/
d8
/
hook
/
user_format_name_alter.twig
1
/**
2
* Implements hook_user_format_name_alter().
3
*/
4
function {{ machine_name }}_user_format_name_alter(&$name, $account) {
5
// Display the user's uid instead of name.
6
if ($account->id()) {
7
$name = t('User @uid', ['@uid' => $account->id()]);
8
}
9
}