function user_entity_extra_field_info

Same name in other branches
  1. 9 core/modules/user/user.module \user_entity_extra_field_info()
  2. 10 core/modules/user/user.module \user_entity_extra_field_info()

Implements hook_entity_extra_field_info().

File

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

Code

function user_entity_extra_field_info() {
    $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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.