Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#396] Add a target bundle to first and last name user fields. #407

Merged

Conversation

arlina-espinoza
Copy link
Contributor

At least one module seems to think that user fields that should be exposed for other configuration should have a target bundle set, as a way to distinguish the fields from other internal fields (such as uuid, roles, etc). This is at least the case with the_CAS Attributes_ module that allows setting remote attributes mapping to user fields.
This PR adds the bundle to the first/last name fields.
As a note, fields added through the UI and saved into configuration do have the bundle set to "user", however, fields added through hook_entity_base_field_info_alter() do not (even if using ->setTargetBundle('user')), I think that because by definition base fields apply to all bundles of an entity type.

Copy link
Collaborator

@cnovak cnovak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@arlina-espinoza arlina-espinoza merged commit 7df0e45 into apigee:8.x-1.x May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates CLA has been signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

First and Last Name fields can't be populated by cas_attributes module
3 participants