function UserHooks::theme

Implements hook_theme().

Attributes

#[Hook('theme')]

File

core/modules/user/src/Hook/UserHooks.php, line 95

Class

UserHooks
Hook implementations for user.

Namespace

Drupal\user\Hook

Code

public function theme() : array {
  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.