mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-01-12 15:14:35 +00:00
Add fields to user entity
This commit is contained in:
parent
356a711ffc
commit
96cf0ee6ac
11 changed files with 315 additions and 13 deletions
|
@ -3,11 +3,18 @@ langcode: en
|
|||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.user.user.field_biography
|
||||
- field.field.user.user.field_favorite_quote
|
||||
- field.field.user.user.field_social_media_links
|
||||
- field.field.user.user.field_website
|
||||
- field.field.user.user.user_picture
|
||||
- image.style.thumbnail
|
||||
module:
|
||||
- image
|
||||
- link
|
||||
- paragraphs
|
||||
- path
|
||||
- social_link_field
|
||||
- user
|
||||
_core:
|
||||
default_config_hash: FaQ9Ptcpxpg30AtiqRDtl_8zbJArHP1LPfug_s59TOA
|
||||
|
@ -17,26 +24,76 @@ bundle: user
|
|||
mode: default
|
||||
content:
|
||||
account:
|
||||
weight: -10
|
||||
region: content
|
||||
contact:
|
||||
weight: 5
|
||||
region: content
|
||||
language:
|
||||
weight: 0
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
contact:
|
||||
weight: 8
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
field_biography:
|
||||
type: string_textarea
|
||||
weight: 4
|
||||
region: content
|
||||
settings:
|
||||
rows: 5
|
||||
placeholder: ''
|
||||
third_party_settings: { }
|
||||
field_favorite_quote:
|
||||
type: paragraphs
|
||||
weight: 5
|
||||
region: content
|
||||
settings:
|
||||
title: Paragraph
|
||||
title_plural: Paragraphs
|
||||
edit_mode: open
|
||||
closed_mode: summary
|
||||
autocollapse: none
|
||||
closed_mode_threshold: 0
|
||||
add_mode: dropdown
|
||||
form_display_mode: default
|
||||
default_paragraph_type: ''
|
||||
features:
|
||||
collapse_edit_all: collapse_edit_all
|
||||
duplicate: duplicate
|
||||
third_party_settings: { }
|
||||
field_social_media_links:
|
||||
type: social_links
|
||||
weight: 2
|
||||
region: content
|
||||
settings:
|
||||
select_social: false
|
||||
disable_weight: false
|
||||
third_party_settings: { }
|
||||
field_website:
|
||||
type: link_default
|
||||
weight: 1
|
||||
region: content
|
||||
settings:
|
||||
placeholder_url: ''
|
||||
placeholder_title: ''
|
||||
third_party_settings: { }
|
||||
language:
|
||||
weight: 7
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
path:
|
||||
type: path
|
||||
weight: 30
|
||||
weight: 9
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
timezone:
|
||||
weight: 6
|
||||
region: content
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
user_picture:
|
||||
type: image_image
|
||||
weight: -1
|
||||
weight: 3
|
||||
region: content
|
||||
settings:
|
||||
progress_indicator: throbber
|
||||
|
|
|
@ -4,6 +4,10 @@ status: true
|
|||
dependencies:
|
||||
config:
|
||||
- core.entity_view_mode.user.compact
|
||||
- field.field.user.user.field_biography
|
||||
- field.field.user.user.field_favorite_quote
|
||||
- field.field.user.user.field_social_media_links
|
||||
- field.field.user.user.field_website
|
||||
- field.field.user.user.user_picture
|
||||
- image.style.thumbnail
|
||||
module:
|
||||
|
@ -20,12 +24,16 @@ content:
|
|||
type: image
|
||||
label: hidden
|
||||
settings:
|
||||
image_style: thumbnail
|
||||
image_link: content
|
||||
image_style: thumbnail
|
||||
image_loading:
|
||||
attribute: lazy
|
||||
third_party_settings: { }
|
||||
weight: 0
|
||||
region: content
|
||||
hidden:
|
||||
field_biography: true
|
||||
field_favorite_quote: true
|
||||
field_social_media_links: true
|
||||
field_website: true
|
||||
member_for: true
|
||||
|
|
|
@ -3,10 +3,17 @@ langcode: en
|
|||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.field.user.user.field_biography
|
||||
- field.field.user.user.field_favorite_quote
|
||||
- field.field.user.user.field_social_media_links
|
||||
- field.field.user.user.field_website
|
||||
- field.field.user.user.user_picture
|
||||
- image.style.thumbnail
|
||||
module:
|
||||
- entity_reference_revisions
|
||||
- image
|
||||
- link
|
||||
- social_link_field
|
||||
- user
|
||||
_core:
|
||||
default_config_hash: mZLyuWM9CQx2ZJVqFGSbzgFnHzudVbHBYmdU256A5Wk
|
||||
|
@ -15,18 +22,54 @@ targetEntityType: user
|
|||
bundle: user
|
||||
mode: default
|
||||
content:
|
||||
member_for:
|
||||
weight: 5
|
||||
field_biography:
|
||||
type: basic_string
|
||||
label: hidden
|
||||
settings: { }
|
||||
third_party_settings: { }
|
||||
weight: 3
|
||||
region: content
|
||||
field_favorite_quote:
|
||||
type: entity_reference_revisions_entity_view
|
||||
label: above
|
||||
settings:
|
||||
view_mode: default
|
||||
link: ''
|
||||
third_party_settings: { }
|
||||
weight: 4
|
||||
region: content
|
||||
field_social_media_links:
|
||||
type: font_awesome
|
||||
label: above
|
||||
settings:
|
||||
icon_type: common
|
||||
orientation: vertical
|
||||
new_tab: true
|
||||
third_party_settings: { }
|
||||
weight: 2
|
||||
region: content
|
||||
field_website:
|
||||
type: link
|
||||
label: hidden
|
||||
settings:
|
||||
trim_length: 80
|
||||
url_only: false
|
||||
url_plain: false
|
||||
rel: ''
|
||||
target: ''
|
||||
third_party_settings: { }
|
||||
weight: 1
|
||||
region: content
|
||||
user_picture:
|
||||
type: image
|
||||
label: hidden
|
||||
settings:
|
||||
image_style: thumbnail
|
||||
image_link: content
|
||||
image_style: thumbnail
|
||||
image_loading:
|
||||
attribute: lazy
|
||||
third_party_settings: { }
|
||||
weight: 0
|
||||
region: content
|
||||
hidden: { }
|
||||
hidden:
|
||||
member_for: true
|
||||
|
|
20
drupal10/config/field.field.user.user.field_biography.yml
Normal file
20
drupal10/config/field.field.user.user.field_biography.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
uuid: 8a0f6308-fcf6-4e41-b149-0a5171b89acc
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.user.field_biography
|
||||
module:
|
||||
- user
|
||||
id: user.user.field_biography
|
||||
field_name: field_biography
|
||||
entity_type: user
|
||||
bundle: user
|
||||
label: Biography
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings: { }
|
||||
field_type: string_long
|
|
@ -0,0 +1,31 @@
|
|||
uuid: 9e496266-2363-4367-8a8c-2ae11a05919d
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.user.field_favorite_quote
|
||||
- paragraphs.paragraphs_type.favorite_quote
|
||||
module:
|
||||
- entity_reference_revisions
|
||||
- user
|
||||
id: user.user.field_favorite_quote
|
||||
field_name: field_favorite_quote
|
||||
entity_type: user
|
||||
bundle: user
|
||||
label: 'Favorite quote'
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
handler: 'default:paragraph'
|
||||
handler_settings:
|
||||
target_bundles:
|
||||
favorite_quote: favorite_quote
|
||||
negate: 0
|
||||
target_bundles_drag_drop:
|
||||
favorite_quote:
|
||||
weight: 2
|
||||
enabled: true
|
||||
field_type: entity_reference_revisions
|
|
@ -0,0 +1,42 @@
|
|||
uuid: 1a9e4b10-59d0-48c2-bdda-a332cf74e7ed
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.user.field_social_media_links
|
||||
module:
|
||||
- social_link_field
|
||||
- user
|
||||
id: user.user.field_social_media_links
|
||||
field_name: field_social_media_links
|
||||
entity_type: user
|
||||
bundle: user
|
||||
label: 'Social media links'
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
platforms:
|
||||
linkedin: linkedin
|
||||
drupal: drupal
|
||||
twitter: twitter
|
||||
instagram: 0
|
||||
facebookevent: 0
|
||||
youtube: 0
|
||||
vimeo: 0
|
||||
tiktok: 0
|
||||
behance: 0
|
||||
homepage: 0
|
||||
facebook: 0
|
||||
email: 0
|
||||
spotifyplaylist: 0
|
||||
drupalpage: 0
|
||||
pinterest: 0
|
||||
github: 0
|
||||
bitbucket: 0
|
||||
googleplus: 0
|
||||
spotifyalbum: 0
|
||||
spotifyartist: 0
|
||||
field_type: social_links
|
23
drupal10/config/field.field.user.user.field_website.yml
Normal file
23
drupal10/config/field.field.user.user.field_website.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
uuid: 15637467-5b8b-426c-9ad5-a53ec99555f1
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
config:
|
||||
- field.storage.user.field_website
|
||||
module:
|
||||
- link
|
||||
- user
|
||||
id: user.user.field_website
|
||||
field_name: field_website
|
||||
entity_type: user
|
||||
bundle: user
|
||||
label: Website
|
||||
description: ''
|
||||
required: false
|
||||
translatable: false
|
||||
default_value: { }
|
||||
default_value_callback: ''
|
||||
settings:
|
||||
title: 0
|
||||
link_type: 16
|
||||
field_type: link
|
19
drupal10/config/field.storage.user.field_biography.yml
Normal file
19
drupal10/config/field.storage.user.field_biography.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
uuid: 02fea94a-5ac4-4569-bf23-83b0161c5360
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- user
|
||||
id: user.field_biography
|
||||
field_name: field_biography
|
||||
entity_type: user
|
||||
type: string_long
|
||||
settings:
|
||||
case_sensitive: false
|
||||
module: core
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
21
drupal10/config/field.storage.user.field_favorite_quote.yml
Normal file
21
drupal10/config/field.storage.user.field_favorite_quote.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
uuid: 7b9f8909-6964-4c85-90fc-00f8ea70d0d8
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- entity_reference_revisions
|
||||
- paragraphs
|
||||
- user
|
||||
id: user.field_favorite_quote
|
||||
field_name: field_favorite_quote
|
||||
entity_type: user
|
||||
type: entity_reference_revisions
|
||||
settings:
|
||||
target_type: paragraph
|
||||
module: entity_reference_revisions
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
|
@ -0,0 +1,19 @@
|
|||
uuid: aec8f17a-c91f-47e9-ad91-6b8482b1dc2f
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- social_link_field
|
||||
- user
|
||||
id: user.field_social_media_links
|
||||
field_name: field_social_media_links
|
||||
entity_type: user
|
||||
type: social_links
|
||||
settings: { }
|
||||
module: social_link_field
|
||||
locked: false
|
||||
cardinality: -1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
19
drupal10/config/field.storage.user.field_website.yml
Normal file
19
drupal10/config/field.storage.user.field_website.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
uuid: 864569ed-bde1-4c50-8aab-c1b3ad01e98f
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
module:
|
||||
- link
|
||||
- user
|
||||
id: user.field_website
|
||||
field_name: field_website
|
||||
entity_type: user
|
||||
type: link
|
||||
settings: { }
|
||||
module: link
|
||||
locked: false
|
||||
cardinality: 1
|
||||
translatable: true
|
||||
indexes: { }
|
||||
persist_with_no_fields: false
|
||||
custom_storage: false
|
Loading…
Reference in a new issue