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

Breadcrumb

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

function UserHooks::entityExtraFieldInfo

Implements hook_entity_extra_field_info().

File

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

Class

UserHooks
Hook implementations for user.

Namespace

Drupal\user\Hook

Code

public function entityExtraFieldInfo() {
    $fields['user']['user']['form']['account'] = [
        'label' => t('User name and password'),
        'description' => t('User module account form elements.'),
        'weight' => -10,
    ];
    $fields['user']['user']['form']['language'] = [
        'label' => t('Language settings'),
        'description' => t('User module form element.'),
        'weight' => 0,
    ];
    if (\Drupal::config('system.date')->get('timezone.user.configurable')) {
        $fields['user']['user']['form']['timezone'] = [
            'label' => t('Timezone'),
            'description' => t('System module form element.'),
            'weight' => 6,
        ];
    }
    $fields['user']['user']['display']['member_for'] = [
        'label' => t('Member for'),
        'description' => t("User module 'member for' view element."),
        'weight' => 5,
    ];
    return $fields;
}

API Navigation

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