Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UserHooks.php

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' => [],
            ],
        ],
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal