function user_theme

Same name in other branches
  1. 7.x modules/user/user.module \user_theme()
  2. 8.9.x core/modules/user/user.module \user_theme()
  3. 10 core/modules/user/user.module \user_theme()
  4. 11.x core/modules/user/user.module \user_theme()

Implements hook_theme().

File

core/modules/user/user.module, line 82

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.