function user_theme in Drupal 9
Same name and namespace in other branches
- 8 core/modules/user/user.module \user_theme()
- 6 modules/user/user.module \user_theme()
- 7 modules/user/user.module \user_theme()
Implements hook_theme().
File
- core/
modules/ user/ user.module, line 78 - Enables the user registration and login system.
Code
function user_theme() {
return [
'user' => [
'render element' => 'elements',
],
'username' => [
'variables' => [
'account' => NULL,
'attributes' => [],
'link_options' => [],
],
],
];
}