From 96cf0ee6ac766b790f2413a52c95d2d89d26a9d1 Mon Sep 17 00:00:00 2001 From: Mauricio Dinarte Date: Wed, 4 Dec 2024 10:12:41 -0600 Subject: [PATCH] Add fields to user entity --- ....entity_form_display.user.user.default.yml | 73 +++++++++++++++++-- ....entity_view_display.user.user.compact.yml | 10 ++- ....entity_view_display.user.user.default.yml | 51 ++++++++++++- .../field.field.user.user.field_biography.yml | 20 +++++ ...d.field.user.user.field_favorite_quote.yml | 31 ++++++++ ...eld.user.user.field_social_media_links.yml | 42 +++++++++++ .../field.field.user.user.field_website.yml | 23 ++++++ .../field.storage.user.field_biography.yml | 19 +++++ ...ield.storage.user.field_favorite_quote.yml | 21 ++++++ ....storage.user.field_social_media_links.yml | 19 +++++ .../field.storage.user.field_website.yml | 19 +++++ 11 files changed, 315 insertions(+), 13 deletions(-) create mode 100644 drupal10/config/field.field.user.user.field_biography.yml create mode 100644 drupal10/config/field.field.user.user.field_favorite_quote.yml create mode 100644 drupal10/config/field.field.user.user.field_social_media_links.yml create mode 100644 drupal10/config/field.field.user.user.field_website.yml create mode 100644 drupal10/config/field.storage.user.field_biography.yml create mode 100644 drupal10/config/field.storage.user.field_favorite_quote.yml create mode 100644 drupal10/config/field.storage.user.field_social_media_links.yml create mode 100644 drupal10/config/field.storage.user.field_website.yml diff --git a/drupal10/config/core.entity_form_display.user.user.default.yml b/drupal10/config/core.entity_form_display.user.user.default.yml index 37029e4..03db7b2 100644 --- a/drupal10/config/core.entity_form_display.user.user.default.yml +++ b/drupal10/config/core.entity_form_display.user.user.default.yml @@ -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 diff --git a/drupal10/config/core.entity_view_display.user.user.compact.yml b/drupal10/config/core.entity_view_display.user.user.compact.yml index dc24012..1ca8f63 100644 --- a/drupal10/config/core.entity_view_display.user.user.compact.yml +++ b/drupal10/config/core.entity_view_display.user.user.compact.yml @@ -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 diff --git a/drupal10/config/core.entity_view_display.user.user.default.yml b/drupal10/config/core.entity_view_display.user.user.default.yml index f7b4274..757c840 100644 --- a/drupal10/config/core.entity_view_display.user.user.default.yml +++ b/drupal10/config/core.entity_view_display.user.user.default.yml @@ -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 diff --git a/drupal10/config/field.field.user.user.field_biography.yml b/drupal10/config/field.field.user.user.field_biography.yml new file mode 100644 index 0000000..279967c --- /dev/null +++ b/drupal10/config/field.field.user.user.field_biography.yml @@ -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 diff --git a/drupal10/config/field.field.user.user.field_favorite_quote.yml b/drupal10/config/field.field.user.user.field_favorite_quote.yml new file mode 100644 index 0000000..14f9ca6 --- /dev/null +++ b/drupal10/config/field.field.user.user.field_favorite_quote.yml @@ -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 diff --git a/drupal10/config/field.field.user.user.field_social_media_links.yml b/drupal10/config/field.field.user.user.field_social_media_links.yml new file mode 100644 index 0000000..94ed6c6 --- /dev/null +++ b/drupal10/config/field.field.user.user.field_social_media_links.yml @@ -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 diff --git a/drupal10/config/field.field.user.user.field_website.yml b/drupal10/config/field.field.user.user.field_website.yml new file mode 100644 index 0000000..48aa37d --- /dev/null +++ b/drupal10/config/field.field.user.user.field_website.yml @@ -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 diff --git a/drupal10/config/field.storage.user.field_biography.yml b/drupal10/config/field.storage.user.field_biography.yml new file mode 100644 index 0000000..9cfcdd7 --- /dev/null +++ b/drupal10/config/field.storage.user.field_biography.yml @@ -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 diff --git a/drupal10/config/field.storage.user.field_favorite_quote.yml b/drupal10/config/field.storage.user.field_favorite_quote.yml new file mode 100644 index 0000000..8f914dc --- /dev/null +++ b/drupal10/config/field.storage.user.field_favorite_quote.yml @@ -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 diff --git a/drupal10/config/field.storage.user.field_social_media_links.yml b/drupal10/config/field.storage.user.field_social_media_links.yml new file mode 100644 index 0000000..a9192e3 --- /dev/null +++ b/drupal10/config/field.storage.user.field_social_media_links.yml @@ -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 diff --git a/drupal10/config/field.storage.user.field_website.yml b/drupal10/config/field.storage.user.field_website.yml new file mode 100644 index 0000000..6c602c6 --- /dev/null +++ b/drupal10/config/field.storage.user.field_website.yml @@ -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