function UserHooks::theme

Implements hook_theme().

File

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

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.