Skip to content

Commit

Permalink
LOYALIST-65 Add first/Last Name fields to user accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmcd75 committed Oct 10, 2024
1 parent dbd6235 commit a04a6fb
Show file tree
Hide file tree
Showing 6 changed files with 170 additions and 0 deletions.
49 changes: 49 additions & 0 deletions configuration/core.entity_form_display.user.user.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
uuid: 9d3e6da0-4557-4258-a1f7-1492ea119189
langcode: en
status: true
dependencies:
config:
- field.field.user.user.field_first_name
- field.field.user.user.field_last_name
module:
- path
- user
id: user.user.default
targetEntityType: user
bundle: user
mode: default
content:
account:
weight: -10
region: content
settings: { }
third_party_settings: { }
field_first_name:
type: string_textfield
weight: 31
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_last_name:
type: string_textfield
weight: 32
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
language:
weight: 0
region: content
settings: { }
third_party_settings: { }
path:
type: path
weight: 30
region: content
settings: { }
third_party_settings: { }
hidden:
langcode: true
39 changes: 39 additions & 0 deletions configuration/core.entity_view_display.user.user.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
uuid: 295a53a6-e766-4f17-abe5-038cb89c7714
langcode: en
status: true
dependencies:
config:
- field.field.user.user.field_first_name
- field.field.user.user.field_last_name
module:
- user
id: user.user.default
targetEntityType: user
bundle: user
mode: default
content:
field_first_name:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 6
region: content
field_last_name:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 7
region: content
member_for:
settings: { }
third_party_settings: { }
weight: 5
region: content
hidden:
blog__personal_blog_link: true
langcode: true
search_api_excerpt: true
20 changes: 20 additions & 0 deletions configuration/field.field.user.user.field_first_name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: b1db343e-83e0-43a2-a19d-70fc361edba4
langcode: en
status: true
dependencies:
config:
- field.storage.user.field_first_name
module:
- user
id: user.user.field_first_name
field_name: field_first_name
entity_type: user
bundle: user
label: 'First Name'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
20 changes: 20 additions & 0 deletions configuration/field.field.user.user.field_last_name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: bf65f51e-519b-41f4-9a25-f7346a206482
langcode: en
status: true
dependencies:
config:
- field.storage.user.field_last_name
module:
- user
id: user.user.field_last_name
field_name: field_last_name
entity_type: user
bundle: user
label: 'Last Name'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
21 changes: 21 additions & 0 deletions configuration/field.storage.user.field_first_name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: f28088b7-7bab-4ce5-8674-479a8c3d2d34
langcode: en
status: true
dependencies:
module:
- user
id: user.field_first_name
field_name: field_first_name
entity_type: user
type: string
settings:
max_length: 255
case_sensitive: false
is_ascii: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
21 changes: 21 additions & 0 deletions configuration/field.storage.user.field_last_name.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 4946cf6e-4ebf-47ad-a81f-22d002141a4b
langcode: en
status: true
dependencies:
module:
- user
id: user.field_last_name
field_name: field_last_name
entity_type: user
type: string
settings:
max_length: 255
case_sensitive: false
is_ascii: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

0 comments on commit a04a6fb

Please sign in to comment.