function user_theme

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

Implements hook_theme().

File

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

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.