Problem/Motivation

The form logic for registering users (including anonymous) is not elegant, and is difficult to extend to other entity types, as in #1653458: Register an entity different than a user.

Proposed resolution

Create a new plugin type for registration forms, and move some of the current code in RegisterForm to one or more plugins handling different types of user registrations. The new plugin type should have "entity_types" metadata allowing the form to specify what entity types it applies to.

Remaining tasks

Develop an MR with this approach. It needs to be fully BC for the existing install base, which should not be a problem.

User interface changes

This should not be visible to an end user who is registering. It simply modernizes the approach so that registering other entity types besides users is easier.

API changes

A new plugin type will be created.

Data model changes

None.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

john.oltman created an issue. See original summary.

john.oltman’s picture

Issue summary: View changes
john.oltman’s picture

Issue summary: View changes

john.oltman’s picture

Status: Active » Needs review

john.oltman’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.