You are here

function user_theme in Drupal 8

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

Implements hook_theme().

File

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

Code

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