From f38b02863b827e62a9a5249a27f248870e0912d1 Mon Sep 17 00:00:00 2001 From: Shital Borle <71140-shitalb@users.noreply.drupalcode.org> Date: Fri, 25 Apr 2025 12:54:56 +0530 Subject: [PATCH] Issue #3521117: Create Card with Social Icons paragraph type --- ...ragraph.card_with_social_icons.default.yml | 74 +++++++++++++++++++ ...display.paragraph.social_icons.default.yml | 43 +++++++++++ ...ragraph.card_with_social_icons.default.yml | 61 +++++++++++++++ ...display.paragraph.social_icons.default.yml | 47 ++++++++++++ ...rd_with_social_icons.field_description.yml | 24 ++++++ ...aph.card_with_social_icons.field_image.yml | 29 ++++++++ ...d_with_social_icons.field_social_icons.yml | 55 ++++++++++++++ ....card_with_social_icons.field_subtitle.yml | 19 +++++ ...aph.card_with_social_icons.field_title.yml | 24 ++++++ ...aragraph.social_icons.field_card_class.yml | 19 +++++ ...ield.paragraph.social_icons.field_icon.yml | 29 ++++++++ ...ield.paragraph.social_icons.field_link.yml | 23 ++++++ ...d.storage.paragraph.field_social_icons.yml | 20 +++++ ...field.storage.paragraph.field_subtitle.yml | 21 ++++++ ...paragraphs_type.card_with_social_icons.yml | 10 +++ ...aragraphs.paragraphs_type.social_icons.yml | 10 +++ 16 files changed, 508 insertions(+) create mode 100644 config/core.entity_form_display.paragraph.card_with_social_icons.default.yml create mode 100644 config/core.entity_form_display.paragraph.social_icons.default.yml create mode 100644 config/core.entity_view_display.paragraph.card_with_social_icons.default.yml create mode 100644 config/core.entity_view_display.paragraph.social_icons.default.yml create mode 100644 config/field.field.paragraph.card_with_social_icons.field_description.yml create mode 100644 config/field.field.paragraph.card_with_social_icons.field_image.yml create mode 100644 config/field.field.paragraph.card_with_social_icons.field_social_icons.yml create mode 100644 config/field.field.paragraph.card_with_social_icons.field_subtitle.yml create mode 100644 config/field.field.paragraph.card_with_social_icons.field_title.yml create mode 100644 config/field.field.paragraph.social_icons.field_card_class.yml create mode 100644 config/field.field.paragraph.social_icons.field_icon.yml create mode 100644 config/field.field.paragraph.social_icons.field_link.yml create mode 100644 config/field.storage.paragraph.field_social_icons.yml create mode 100644 config/field.storage.paragraph.field_subtitle.yml create mode 100644 config/paragraphs.paragraphs_type.card_with_social_icons.yml create mode 100644 config/paragraphs.paragraphs_type.social_icons.yml diff --git a/config/core.entity_form_display.paragraph.card_with_social_icons.default.yml b/config/core.entity_form_display.paragraph.card_with_social_icons.default.yml new file mode 100644 index 0000000..fe3e40e --- /dev/null +++ b/config/core.entity_form_display.paragraph.card_with_social_icons.default.yml @@ -0,0 +1,74 @@ +uuid: 0946e070-5a1c-4722-afca-f726e3ffe9ed +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.card_with_social_icons.field_description + - field.field.paragraph.card_with_social_icons.field_image + - field.field.paragraph.card_with_social_icons.field_social_icons + - field.field.paragraph.card_with_social_icons.field_subtitle + - field.field.paragraph.card_with_social_icons.field_title + - paragraphs.paragraphs_type.card_with_social_icons + module: + - media_library + - paragraphs + - text +id: paragraph.card_with_social_icons.default +targetEntityType: paragraph +bundle: card_with_social_icons +mode: default +content: + field_description: + type: text_textarea + weight: 2 + region: content + settings: + rows: 5 + placeholder: '' + third_party_settings: { } + field_image: + type: media_library_widget + weight: 3 + region: content + settings: + media_types: { } + third_party_settings: { } + field_social_icons: + type: paragraphs + weight: 4 + region: content + settings: + title: Paragraph + title_plural: Paragraphs + edit_mode: closed + closed_mode: summary + autocollapse: all + closed_mode_threshold: 0 + add_mode: dropdown + form_display_mode: default + default_paragraph_type: social_icons + features: + add_above: '0' + collapse_edit_all: collapse_edit_all + convert: '0' + duplicate: duplicate + third_party_settings: { } + field_subtitle: + type: string_textfield + weight: 1 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + field_title: + type: text_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } +hidden: + created: true + status: true diff --git a/config/core.entity_form_display.paragraph.social_icons.default.yml b/config/core.entity_form_display.paragraph.social_icons.default.yml new file mode 100644 index 0000000..9bfbacc --- /dev/null +++ b/config/core.entity_form_display.paragraph.social_icons.default.yml @@ -0,0 +1,43 @@ +uuid: f8e57a8d-07c3-4e26-be5f-c97383cfa6e6 +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.social_icons.field_card_class + - field.field.paragraph.social_icons.field_icon + - field.field.paragraph.social_icons.field_link + - paragraphs.paragraphs_type.social_icons + module: + - link + - media_library +id: paragraph.social_icons.default +targetEntityType: paragraph +bundle: social_icons +mode: default +content: + field_card_class: + type: string_textfield + weight: 6 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + field_icon: + type: media_library_widget + weight: 0 + region: content + settings: + media_types: { } + third_party_settings: { } + field_link: + type: link_default + weight: 4 + region: content + settings: + placeholder_url: '' + placeholder_title: '' + third_party_settings: { } +hidden: + created: true + status: true diff --git a/config/core.entity_view_display.paragraph.card_with_social_icons.default.yml b/config/core.entity_view_display.paragraph.card_with_social_icons.default.yml new file mode 100644 index 0000000..041dbb6 --- /dev/null +++ b/config/core.entity_view_display.paragraph.card_with_social_icons.default.yml @@ -0,0 +1,61 @@ +uuid: 75f47455-7234-4e1d-a4f8-857871d80ae0 +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.card_with_social_icons.field_description + - field.field.paragraph.card_with_social_icons.field_image + - field.field.paragraph.card_with_social_icons.field_social_icons + - field.field.paragraph.card_with_social_icons.field_subtitle + - field.field.paragraph.card_with_social_icons.field_title + - paragraphs.paragraphs_type.card_with_social_icons + module: + - entity_reference_revisions + - text +id: paragraph.card_with_social_icons.default +targetEntityType: paragraph +bundle: card_with_social_icons +mode: default +content: + field_description: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 1 + region: content + field_image: + type: entity_reference_entity_view + label: hidden + settings: + view_mode: default + link: false + third_party_settings: { } + weight: 10 + region: content + field_social_icons: + type: entity_reference_revisions_entity_view + label: hidden + settings: + view_mode: default + link: '' + third_party_settings: { } + weight: 12 + region: content + field_subtitle: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 11 + region: content + field_title: + type: text_default + label: hidden + settings: { } + third_party_settings: { } + weight: 0 + region: content +hidden: + search_api_excerpt: true diff --git a/config/core.entity_view_display.paragraph.social_icons.default.yml b/config/core.entity_view_display.paragraph.social_icons.default.yml new file mode 100644 index 0000000..ef76052 --- /dev/null +++ b/config/core.entity_view_display.paragraph.social_icons.default.yml @@ -0,0 +1,47 @@ +uuid: 3798e9b0-af62-4a46-8d16-e8c6a563a1f3 +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.social_icons.field_card_class + - field.field.paragraph.social_icons.field_icon + - field.field.paragraph.social_icons.field_link + - paragraphs.paragraphs_type.social_icons + module: + - link +id: paragraph.social_icons.default +targetEntityType: paragraph +bundle: social_icons +mode: default +content: + field_card_class: + type: string + label: hidden + settings: + link_to_entity: false + third_party_settings: { } + weight: 11 + region: content + field_icon: + type: entity_reference_entity_view + label: hidden + settings: + view_mode: default + link: false + third_party_settings: { } + weight: 14 + region: content + field_link: + type: link + label: hidden + settings: + trim_length: 80 + url_only: false + url_plain: false + rel: '' + target: '' + third_party_settings: { } + weight: 12 + region: content +hidden: + search_api_excerpt: true diff --git a/config/field.field.paragraph.card_with_social_icons.field_description.yml b/config/field.field.paragraph.card_with_social_icons.field_description.yml new file mode 100644 index 0000000..9498a1c --- /dev/null +++ b/config/field.field.paragraph.card_with_social_icons.field_description.yml @@ -0,0 +1,24 @@ +uuid: c9a7fffe-451c-4663-b90c-5fd260aa77f9 +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_description + - filter.format.content_format + - paragraphs.paragraphs_type.card_with_social_icons + module: + - text +id: paragraph.card_with_social_icons.field_description +field_name: field_description +entity_type: paragraph +bundle: card_with_social_icons +label: Description +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + allowed_formats: + - content_format +field_type: text_long diff --git a/config/field.field.paragraph.card_with_social_icons.field_image.yml b/config/field.field.paragraph.card_with_social_icons.field_image.yml new file mode 100644 index 0000000..8d64057 --- /dev/null +++ b/config/field.field.paragraph.card_with_social_icons.field_image.yml @@ -0,0 +1,29 @@ +uuid: 635629b0-9fd0-482d-9225-f1a6d0df3415 +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_image + - media.type.image + - paragraphs.paragraphs_type.card_with_social_icons +id: paragraph.card_with_social_icons.field_image +field_name: field_image +entity_type: paragraph +bundle: card_with_social_icons +label: Image +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:media' + handler_settings: + target_bundles: + image: image + sort: + field: _none + direction: ASC + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/field.field.paragraph.card_with_social_icons.field_social_icons.yml b/config/field.field.paragraph.card_with_social_icons.field_social_icons.yml new file mode 100644 index 0000000..be1a17b --- /dev/null +++ b/config/field.field.paragraph.card_with_social_icons.field_social_icons.yml @@ -0,0 +1,55 @@ +uuid: 48b94d28-b230-4153-81ab-ca46cf9b266b +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_social_icons + - paragraphs.paragraphs_type.card_with_social_icons + - paragraphs.paragraphs_type.social_icons + module: + - entity_reference_revisions +id: paragraph.card_with_social_icons.field_social_icons +field_name: field_social_icons +entity_type: paragraph +bundle: card_with_social_icons +label: 'Social Icons' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:paragraph' + handler_settings: + target_bundles: + social_icons: social_icons + negate: 0 + target_bundles_drag_drop: + accordion: + weight: 10 + enabled: false + accordion_items: + weight: 11 + enabled: false + card_grid: + weight: 12 + enabled: false + card_with_social_icons: + weight: 13 + enabled: false + hero_section: + weight: 14 + enabled: false + icon_card: + weight: 15 + enabled: false + image_card: + weight: 16 + enabled: false + section_details: + weight: 17 + enabled: false + social_icons: + weight: 18 + enabled: true +field_type: entity_reference_revisions diff --git a/config/field.field.paragraph.card_with_social_icons.field_subtitle.yml b/config/field.field.paragraph.card_with_social_icons.field_subtitle.yml new file mode 100644 index 0000000..bf7b875 --- /dev/null +++ b/config/field.field.paragraph.card_with_social_icons.field_subtitle.yml @@ -0,0 +1,19 @@ +uuid: e031de71-cd89-458b-98e5-011ec6f73489 +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_subtitle + - paragraphs.paragraphs_type.card_with_social_icons +id: paragraph.card_with_social_icons.field_subtitle +field_name: field_subtitle +entity_type: paragraph +bundle: card_with_social_icons +label: Subtitle +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/field.field.paragraph.card_with_social_icons.field_title.yml b/config/field.field.paragraph.card_with_social_icons.field_title.yml new file mode 100644 index 0000000..fc2a603 --- /dev/null +++ b/config/field.field.paragraph.card_with_social_icons.field_title.yml @@ -0,0 +1,24 @@ +uuid: 40dcd1fe-618d-4c0c-9a27-af7f64a44d00 +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_title + - filter.format.content_format + - paragraphs.paragraphs_type.card_with_social_icons + module: + - text +id: paragraph.card_with_social_icons.field_title +field_name: field_title +entity_type: paragraph +bundle: card_with_social_icons +label: Title +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + allowed_formats: + - content_format +field_type: text diff --git a/config/field.field.paragraph.social_icons.field_card_class.yml b/config/field.field.paragraph.social_icons.field_card_class.yml new file mode 100644 index 0000000..9c27024 --- /dev/null +++ b/config/field.field.paragraph.social_icons.field_card_class.yml @@ -0,0 +1,19 @@ +uuid: ab089dd8-e35e-4725-b990-424477eef59d +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_card_class + - paragraphs.paragraphs_type.social_icons +id: paragraph.social_icons.field_card_class +field_name: field_card_class +entity_type: paragraph +bundle: social_icons +label: 'Card Class' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/field.field.paragraph.social_icons.field_icon.yml b/config/field.field.paragraph.social_icons.field_icon.yml new file mode 100644 index 0000000..9e0b0ec --- /dev/null +++ b/config/field.field.paragraph.social_icons.field_icon.yml @@ -0,0 +1,29 @@ +uuid: 3f42545e-baa5-421d-a8b9-d0a43f605c88 +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_icon + - media.type.svg_image + - paragraphs.paragraphs_type.social_icons +id: paragraph.social_icons.field_icon +field_name: field_icon +entity_type: paragraph +bundle: social_icons +label: Icon +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:media' + handler_settings: + target_bundles: + svg_image: svg_image + sort: + field: _none + direction: ASC + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/field.field.paragraph.social_icons.field_link.yml b/config/field.field.paragraph.social_icons.field_link.yml new file mode 100644 index 0000000..e990582 --- /dev/null +++ b/config/field.field.paragraph.social_icons.field_link.yml @@ -0,0 +1,23 @@ +uuid: 566ba787-6f1f-4e55-809c-eba0ad966770 +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.field_link + - paragraphs.paragraphs_type.social_icons + module: + - link +id: paragraph.social_icons.field_link +field_name: field_link +entity_type: paragraph +bundle: social_icons +label: Link +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + title: 1 + link_type: 17 +field_type: link diff --git a/config/field.storage.paragraph.field_social_icons.yml b/config/field.storage.paragraph.field_social_icons.yml new file mode 100644 index 0000000..8c27792 --- /dev/null +++ b/config/field.storage.paragraph.field_social_icons.yml @@ -0,0 +1,20 @@ +uuid: c4876a9c-585b-4f7b-927b-5025ea67a7c7 +langcode: en +status: true +dependencies: + module: + - entity_reference_revisions + - paragraphs +id: paragraph.field_social_icons +field_name: field_social_icons +entity_type: paragraph +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/config/field.storage.paragraph.field_subtitle.yml b/config/field.storage.paragraph.field_subtitle.yml new file mode 100644 index 0000000..d3249b1 --- /dev/null +++ b/config/field.storage.paragraph.field_subtitle.yml @@ -0,0 +1,21 @@ +uuid: ab6ff1ab-94ab-4435-927a-060f79d7c6df +langcode: en +status: true +dependencies: + module: + - paragraphs +id: paragraph.field_subtitle +field_name: field_subtitle +entity_type: paragraph +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 diff --git a/config/paragraphs.paragraphs_type.card_with_social_icons.yml b/config/paragraphs.paragraphs_type.card_with_social_icons.yml new file mode 100644 index 0000000..31777fd --- /dev/null +++ b/config/paragraphs.paragraphs_type.card_with_social_icons.yml @@ -0,0 +1,10 @@ +uuid: 94dcd1d0-1f0e-4a43-9185-3041104b7ba1 +langcode: en +status: true +dependencies: { } +id: card_with_social_icons +label: 'Card with Social Icons' +icon_uuid: null +icon_default: null +description: 'Card with image, subtitle, title, description and social icons' +behavior_plugins: { } diff --git a/config/paragraphs.paragraphs_type.social_icons.yml b/config/paragraphs.paragraphs_type.social_icons.yml new file mode 100644 index 0000000..202adf8 --- /dev/null +++ b/config/paragraphs.paragraphs_type.social_icons.yml @@ -0,0 +1,10 @@ +uuid: 05e4d86e-1fcc-4dbf-8924-a6d51df6744d +langcode: en +status: true +dependencies: { } +id: social_icons +label: 'Social Icons' +icon_uuid: null +icon_default: null +description: 'Social icons list with Icon and Link.' +behavior_plugins: { } -- GitLab