How to show PASS and MAIL fields from User entity?

Created on 21 August 2024, 6 months ago
Updated 28 August 2024, 6 months ago

Problem/Motivation

Is there any examples how to show PASS and MAIL fields from an User entity?

Steps to reproduce

If I try to show custom fields from "user" along with PASS and MAIL, like:

  protected function getFieldsToRender() {
    return [
      'field_customer_first_name',
      'field_customer_last_name',
      'mail',
      'pass',
    ];
  }

this render working only for "custom" fields like "field_customer_first_name" and for fields "pass" or "mail" NOT working, just an error:

Error: Call to a member function form() on null in Drupal\nextzero_form\Form\RegStep\BaseStep->getWidgetForm() (line 87 of modules/contrib/multistep_form_framework/src/EntityWidgetsTrait.php).

Proposed resolution

-

Remaining tasks

-

User interface changes

-

Thank you for the great module!

πŸ’¬ Support request
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

πŸ‡΅πŸ‡±Poland azovsky

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024