template_preprocess_username
function template_preprocess_username
template_preprocess_username(&$variables)
Prepares variables for username templates.
Default template: username.html.twig.
Modules that make any changes to variables like 'name' or 'extra' must ensure that the final string is safe.
Parameters
array $variables: An associative array containing:
- account: The user account (\Drupal\Core\Session\AccountInterface).
File
- core/modules/user/登录查看完整内容