You are here

function user_theme in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/user.module \user_theme()
  2. 6 modules/user/user.module \user_theme()
  3. 7 modules/user/user.module \user_theme()
  4. 9 core/modules/user/user.module \user_theme()

Implements hook_theme().

File

core/modules/user/user.module, line 82
Enables the user registration and login system.

Code

function user_theme() {
  return [
    'user' => [
      'render element' => 'elements',
    ],
    'username' => [
      'variables' => [
        'account' => NULL,
        'attributes' => [],
        'link_options' => [],
      ],
    ],
  ];
}