From 432cca23e911d0de4384c8657f86ad8a2d25cef7 Mon Sep 17 00:00:00 2001 From: Abel Santos <abel.santos.corral@gmail.com> Date: Wed, 16 Mar 2022 17:36:45 +0100 Subject: [PATCH] OEL-1280: Change the prefix of fields of paragraphs. --- ....oe_description_list.oe_w_orientation.yml} | 6 +- ...graph.oe_facts_figures.oe_w_n_columns.yml} | 6 +- ...nks_block.oe_w_links_block_background.yml} | 6 +- ...ks_block.oe_w_links_block_orientation.yml} | 6 +- ...ia_follow.oe_w_links_block_background.yml} | 6 +- ...paragraph.oe_w_links_block_background.yml} | 4 +- ...aragraph.oe_w_links_block_orientation.yml} | 4 +- ...ield.storage.paragraph.oe_w_n_columns.yml} | 4 +- ...ld.storage.paragraph.oe_w_orientation.yml} | 4 +- ....paragraph.oe_description_list.default.yml | 4 +- ...lay.paragraph.oe_facts_figures.default.yml | 4 +- ...splay.paragraph.oe_links_block.default.yml | 8 +- ...ragraph.oe_social_media_follow.default.yml | 4 +- ....paragraph.oe_description_list.default.yml | 4 +- ...lay.paragraph.oe_facts_figures.default.yml | 4 +- ...ragraph.oe_social_media_follow.default.yml | 4 +- ....paragraph.oe_description_list.default.yml | 4 +- ....paragraph.oe_description_list.default.yml | 4 +- ....oe_description_list.oe_w_orientation.yml} | 6 +- ...ld.storage.paragraph.oe_w_orientation.yml} | 4 +- ...lay.paragraph.oe_facts_figures.default.yml | 4 +- ...lay.paragraph.oe_facts_figures.default.yml | 4 +- ...graph.oe_facts_figures.oe_w_n_columns.yml} | 6 +- ...ield.storage.paragraph.oe_w_n_columns.yml} | 4 +- .../oe_whitelabel_paragraphs.info.yml | 18 +-- .../oe_whitelabel_paragraphs.module | 12 +- .../oe_whitelabel_paragraphs.post_update.php | 8 +- .../tests/src/Functional/ParagraphsTest.php | 150 +++++++++--------- .../src/Kernel/Paragraphs/ContentRowTest.php | 6 +- .../Kernel/Paragraphs/DescriptionListTest.php | 4 +- .../EntityReferenceRevisionTest.php | 4 +- .../Kernel/Paragraphs/FactsFiguresTest.php | 6 +- .../src/Kernel/Paragraphs/LinksBlockTest.php | 12 +- .../Paragraphs/SocialMediaFollowTest.php | 6 +- 34 files changed, 170 insertions(+), 170 deletions(-) rename modules/oe_whitelabel_paragraphs/config/install/{field.field.paragraph.oe_description_list.oe_bt_orientation.yml => field.field.paragraph.oe_description_list.oe_w_orientation.yml} (76%) rename modules/oe_whitelabel_paragraphs/config/{post_updates/00003/field.field.paragraph.oe_facts_figures.oe_bt_n_columns.yml => install/field.field.paragraph.oe_facts_figures.oe_w_n_columns.yml} (78%) rename modules/oe_whitelabel_paragraphs/config/install/{field.field.paragraph.oe_links_block.oe_bt_links_block_background.yml => field.field.paragraph.oe_links_block.oe_w_links_block_background.yml} (71%) rename modules/oe_whitelabel_paragraphs/config/install/{field.field.paragraph.oe_links_block.oe_bt_links_block_orientation.yml => field.field.paragraph.oe_links_block.oe_w_links_block_orientation.yml} (70%) rename modules/oe_whitelabel_paragraphs/config/install/{field.field.paragraph.oe_social_media_follow.oe_bt_links_block_background.yml => field.field.paragraph.oe_social_media_follow.oe_w_links_block_background.yml} (71%) rename modules/oe_whitelabel_paragraphs/config/install/{field.storage.paragraph.oe_bt_links_block_background.yml => field.storage.paragraph.oe_w_links_block_background.yml} (82%) rename modules/oe_whitelabel_paragraphs/config/install/{field.storage.paragraph.oe_bt_links_block_orientation.yml => field.storage.paragraph.oe_w_links_block_orientation.yml} (82%) rename modules/oe_whitelabel_paragraphs/config/{post_updates/00003/field.storage.paragraph.oe_bt_n_columns.yml => install/field.storage.paragraph.oe_w_n_columns.yml} (82%) rename modules/oe_whitelabel_paragraphs/config/install/{field.storage.paragraph.oe_bt_orientation.yml => field.storage.paragraph.oe_w_orientation.yml} (86%) rename modules/oe_whitelabel_paragraphs/config/post_updates/00001/{field.field.paragraph.oe_description_list.oe_bt_orientation.yml => field.field.paragraph.oe_description_list.oe_w_orientation.yml} (76%) rename modules/oe_whitelabel_paragraphs/config/post_updates/00001/{field.storage.paragraph.oe_bt_orientation.yml => field.storage.paragraph.oe_w_orientation.yml} (86%) rename modules/oe_whitelabel_paragraphs/config/{install/field.field.paragraph.oe_facts_figures.oe_bt_n_columns.yml => post_updates/00003/field.field.paragraph.oe_facts_figures.oe_w_n_columns.yml} (78%) rename modules/oe_whitelabel_paragraphs/config/{install/field.storage.paragraph.oe_bt_n_columns.yml => post_updates/00003/field.storage.paragraph.oe_w_n_columns.yml} (82%) diff --git a/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_description_list.oe_bt_orientation.yml b/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_description_list.oe_w_orientation.yml similarity index 76% rename from modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_description_list.oe_bt_orientation.yml rename to modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_description_list.oe_w_orientation.yml index 73b09a47..1e448506 100644 --- a/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_description_list.oe_bt_orientation.yml +++ b/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_description_list.oe_w_orientation.yml @@ -2,12 +2,12 @@ langcode: en status: true dependencies: config: - - field.storage.paragraph.oe_bt_orientation + - field.storage.paragraph.oe_w_orientation - paragraphs.paragraphs_type.oe_description_list module: - options -id: paragraph.oe_description_list.oe_bt_orientation -field_name: oe_bt_orientation +id: paragraph.oe_description_list.oe_w_orientation +field_name: oe_w_orientation entity_type: paragraph bundle: oe_description_list label: Orientation diff --git a/modules/oe_whitelabel_paragraphs/config/post_updates/00003/field.field.paragraph.oe_facts_figures.oe_bt_n_columns.yml b/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_facts_figures.oe_w_n_columns.yml similarity index 78% rename from modules/oe_whitelabel_paragraphs/config/post_updates/00003/field.field.paragraph.oe_facts_figures.oe_bt_n_columns.yml rename to modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_facts_figures.oe_w_n_columns.yml index eec70a14..0165929a 100644 --- a/modules/oe_whitelabel_paragraphs/config/post_updates/00003/field.field.paragraph.oe_facts_figures.oe_bt_n_columns.yml +++ b/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_facts_figures.oe_w_n_columns.yml @@ -2,10 +2,10 @@ langcode: en status: true dependencies: config: - - field.storage.paragraph.oe_bt_n_columns + - field.storage.paragraph.oe_w_n_columns - paragraphs.paragraphs_type.oe_facts_figures -id: paragraph.oe_facts_figures.oe_bt_n_columns -field_name: oe_bt_n_columns +id: paragraph.oe_facts_figures.oe_w_n_columns +field_name: oe_w_n_columns entity_type: paragraph bundle: oe_facts_figures label: 'Number of columns' diff --git a/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_links_block.oe_bt_links_block_background.yml b/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_links_block.oe_w_links_block_background.yml similarity index 71% rename from modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_links_block.oe_bt_links_block_background.yml rename to modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_links_block.oe_w_links_block_background.yml index de66c697..5ac9c728 100644 --- a/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_links_block.oe_bt_links_block_background.yml +++ b/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_links_block.oe_w_links_block_background.yml @@ -2,12 +2,12 @@ langcode: en status: true dependencies: config: - - field.storage.paragraph.oe_bt_links_block_background + - field.storage.paragraph.oe_w_links_block_background - paragraphs.paragraphs_type.oe_links_block module: - options -id: paragraph.oe_links_block.oe_bt_links_block_background -field_name: oe_bt_links_block_background +id: paragraph.oe_links_block.oe_w_links_block_background +field_name: oe_w_links_block_background entity_type: paragraph bundle: oe_links_block label: Background diff --git a/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_links_block.oe_bt_links_block_orientation.yml b/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_links_block.oe_w_links_block_orientation.yml similarity index 70% rename from modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_links_block.oe_bt_links_block_orientation.yml rename to modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_links_block.oe_w_links_block_orientation.yml index 610c35d3..2b3bf721 100644 --- a/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_links_block.oe_bt_links_block_orientation.yml +++ b/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_links_block.oe_w_links_block_orientation.yml @@ -2,12 +2,12 @@ langcode: en status: true dependencies: config: - - field.storage.paragraph.oe_bt_links_block_orientation + - field.storage.paragraph.oe_w_links_block_orientation - paragraphs.paragraphs_type.oe_links_block module: - options -id: paragraph.oe_links_block.oe_bt_links_block_orientation -field_name: oe_bt_links_block_orientation +id: paragraph.oe_links_block.oe_w_links_block_orientation +field_name: oe_w_links_block_orientation entity_type: paragraph bundle: oe_links_block label: Orientation diff --git a/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_social_media_follow.oe_bt_links_block_background.yml b/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_social_media_follow.oe_w_links_block_background.yml similarity index 71% rename from modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_social_media_follow.oe_bt_links_block_background.yml rename to modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_social_media_follow.oe_w_links_block_background.yml index 8e167195..2d8fae09 100644 --- a/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_social_media_follow.oe_bt_links_block_background.yml +++ b/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_social_media_follow.oe_w_links_block_background.yml @@ -2,12 +2,12 @@ langcode: en status: true dependencies: config: - - field.storage.paragraph.oe_bt_links_block_background + - field.storage.paragraph.oe_w_links_block_background - paragraphs.paragraphs_type.oe_social_media_follow module: - options -id: paragraph.oe_social_media_follow.oe_bt_links_block_background -field_name: oe_bt_links_block_background +id: paragraph.oe_social_media_follow.oe_w_links_block_background +field_name: oe_w_links_block_background entity_type: paragraph bundle: oe_social_media_follow label: Background diff --git a/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_bt_links_block_background.yml b/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_w_links_block_background.yml similarity index 82% rename from modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_bt_links_block_background.yml rename to modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_w_links_block_background.yml index 1a7dbec0..28999496 100644 --- a/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_bt_links_block_background.yml +++ b/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_w_links_block_background.yml @@ -4,8 +4,8 @@ dependencies: module: - options - paragraphs -id: paragraph.oe_bt_links_block_background -field_name: oe_bt_links_block_background +id: paragraph.oe_w_links_block_background +field_name: oe_w_links_block_background entity_type: paragraph type: list_string settings: diff --git a/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_bt_links_block_orientation.yml b/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_w_links_block_orientation.yml similarity index 82% rename from modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_bt_links_block_orientation.yml rename to modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_w_links_block_orientation.yml index d582eb81..afdf66e7 100644 --- a/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_bt_links_block_orientation.yml +++ b/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_w_links_block_orientation.yml @@ -4,8 +4,8 @@ dependencies: module: - options - paragraphs -id: paragraph.oe_bt_links_block_orientation -field_name: oe_bt_links_block_orientation +id: paragraph.oe_w_links_block_orientation +field_name: oe_w_links_block_orientation entity_type: paragraph type: list_string settings: diff --git a/modules/oe_whitelabel_paragraphs/config/post_updates/00003/field.storage.paragraph.oe_bt_n_columns.yml b/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_w_n_columns.yml similarity index 82% rename from modules/oe_whitelabel_paragraphs/config/post_updates/00003/field.storage.paragraph.oe_bt_n_columns.yml rename to modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_w_n_columns.yml index f2a74071..3a1a9cbc 100644 --- a/modules/oe_whitelabel_paragraphs/config/post_updates/00003/field.storage.paragraph.oe_bt_n_columns.yml +++ b/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_w_n_columns.yml @@ -3,8 +3,8 @@ status: true dependencies: module: - paragraphs -id: paragraph.oe_bt_n_columns -field_name: oe_bt_n_columns +id: paragraph.oe_w_n_columns +field_name: oe_w_n_columns entity_type: paragraph type: integer settings: diff --git a/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_bt_orientation.yml b/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_w_orientation.yml similarity index 86% rename from modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_bt_orientation.yml rename to modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_w_orientation.yml index 94f290a8..f277e814 100644 --- a/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_bt_orientation.yml +++ b/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_w_orientation.yml @@ -4,8 +4,8 @@ dependencies: module: - options - paragraphs -id: paragraph.oe_bt_orientation -field_name: oe_bt_orientation +id: paragraph.oe_w_orientation +field_name: oe_w_orientation entity_type: paragraph type: list_string settings: diff --git a/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_description_list.default.yml b/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_description_list.default.yml index 363809de..0391e256 100644 --- a/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_description_list.default.yml +++ b/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_description_list.default.yml @@ -4,7 +4,7 @@ dependencies: config: - field.field.paragraph.oe_description_list.field_oe_description_list_items - field.field.paragraph.oe_description_list.field_oe_title - - field.field.paragraph.oe_description_list.oe_bt_orientation + - field.field.paragraph.oe_description_list.oe_w_orientation - paragraphs.paragraphs_type.oe_description_list module: - description_list_field @@ -27,7 +27,7 @@ content: third_party_settings: { } type: string_textfield region: content - oe_bt_orientation: + oe_w_orientation: type: options_select weight: 0 region: content diff --git a/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_facts_figures.default.yml b/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_facts_figures.default.yml index 96a0c1fb..d12c5363 100644 --- a/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_facts_figures.default.yml +++ b/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_facts_figures.default.yml @@ -5,7 +5,7 @@ dependencies: - field.field.paragraph.oe_facts_figures.field_oe_link - field.field.paragraph.oe_facts_figures.field_oe_paragraphs - field.field.paragraph.oe_facts_figures.field_oe_title - - field.field.paragraph.oe_facts_figures.oe_bt_n_columns + - field.field.paragraph.oe_facts_figures.oe_w_n_columns - paragraphs.paragraphs_type.oe_facts_figures module: - link @@ -49,7 +49,7 @@ content: size: 60 placeholder: '' third_party_settings: { } - oe_bt_n_columns: + oe_w_n_columns: weight: 6 settings: placeholder: '' diff --git a/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_links_block.default.yml b/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_links_block.default.yml index 1fab747a..0e2b032e 100644 --- a/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_links_block.default.yml +++ b/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_links_block.default.yml @@ -3,8 +3,8 @@ status: true dependencies: config: - field.field.paragraph.oe_links_block.field_oe_links - - field.field.paragraph.oe_links_block.oe_bt_links_block_background - - field.field.paragraph.oe_links_block.oe_bt_links_block_orientation + - field.field.paragraph.oe_links_block.oe_w_links_block_background + - field.field.paragraph.oe_links_block.oe_w_links_block_orientation - field.field.paragraph.oe_links_block.field_oe_text - paragraphs.paragraphs_type.oe_links_block module: @@ -22,13 +22,13 @@ content: third_party_settings: { } type: link_default region: content - oe_bt_links_block_background: + oe_w_links_block_background: weight: 1 settings: { } third_party_settings: { } type: options_select region: content - oe_bt_links_block_orientation: + oe_w_links_block_orientation: weight: 0 settings: { } third_party_settings: { } diff --git a/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_social_media_follow.default.yml b/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_social_media_follow.default.yml index 8b7cd07f..95a38469 100644 --- a/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_social_media_follow.default.yml +++ b/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_form_display.paragraph.oe_social_media_follow.default.yml @@ -2,7 +2,7 @@ langcode: en status: true dependencies: config: - - field.field.paragraph.oe_social_media_follow.oe_bt_links_block_background + - field.field.paragraph.oe_social_media_follow.oe_w_links_block_background - field.field.paragraph.oe_social_media_follow.field_oe_social_media_links - field.field.paragraph.oe_social_media_follow.field_oe_social_media_see_more - field.field.paragraph.oe_social_media_follow.field_oe_social_media_variant @@ -16,7 +16,7 @@ targetEntityType: paragraph bundle: oe_social_media_follow mode: default content: - oe_bt_links_block_background: + oe_w_links_block_background: type: options_select weight: 1 region: content diff --git a/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_view_display.paragraph.oe_description_list.default.yml b/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_view_display.paragraph.oe_description_list.default.yml index 2e3b81d7..b303a9e9 100644 --- a/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_view_display.paragraph.oe_description_list.default.yml +++ b/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_view_display.paragraph.oe_description_list.default.yml @@ -2,7 +2,7 @@ langcode: en status: true dependencies: config: - - field.field.paragraph.oe_description_list.oe_bt_orientation + - field.field.paragraph.oe_description_list.oe_w_orientation - field.field.paragraph.oe_description_list.field_oe_description_list_items - field.field.paragraph.oe_description_list.field_oe_title - paragraphs.paragraphs_type.oe_description_list @@ -29,4 +29,4 @@ content: type: string region: content hidden: - oe_bt_orientation: true + oe_w_orientation: true diff --git a/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_view_display.paragraph.oe_facts_figures.default.yml b/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_view_display.paragraph.oe_facts_figures.default.yml index e9dd9cf6..6b3d6961 100644 --- a/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_view_display.paragraph.oe_facts_figures.default.yml +++ b/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_view_display.paragraph.oe_facts_figures.default.yml @@ -5,7 +5,7 @@ dependencies: - field.field.paragraph.oe_facts_figures.field_oe_link - field.field.paragraph.oe_facts_figures.field_oe_paragraphs - field.field.paragraph.oe_facts_figures.field_oe_title - - field.field.paragraph.oe_facts_figures.oe_bt_n_columns + - field.field.paragraph.oe_facts_figures.oe_w_n_columns - paragraphs.paragraphs_type.oe_facts_figures module: - entity_reference_revisions @@ -45,4 +45,4 @@ content: type: string region: content hidden: - oe_bt_n_columns: true + oe_w_n_columns: true diff --git a/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_view_display.paragraph.oe_social_media_follow.default.yml b/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_view_display.paragraph.oe_social_media_follow.default.yml index 8e15a231..1177db68 100644 --- a/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_view_display.paragraph.oe_social_media_follow.default.yml +++ b/modules/oe_whitelabel_paragraphs/config/overrides/core.entity_view_display.paragraph.oe_social_media_follow.default.yml @@ -2,7 +2,7 @@ langcode: en status: true dependencies: config: - - field.field.paragraph.oe_social_media_follow.oe_bt_links_block_background + - field.field.paragraph.oe_social_media_follow.oe_w_links_block_background - field.field.paragraph.oe_social_media_follow.field_oe_social_media_links - field.field.paragraph.oe_social_media_follow.field_oe_social_media_see_more - field.field.paragraph.oe_social_media_follow.field_oe_social_media_variant @@ -49,5 +49,5 @@ content: type: string region: content hidden: - oe_bt_links_block_background: true + oe_w_links_block_background: true field_oe_social_media_variant: true diff --git a/modules/oe_whitelabel_paragraphs/config/post_updates/00001/core.entity_form_display.paragraph.oe_description_list.default.yml b/modules/oe_whitelabel_paragraphs/config/post_updates/00001/core.entity_form_display.paragraph.oe_description_list.default.yml index 363809de..0391e256 100644 --- a/modules/oe_whitelabel_paragraphs/config/post_updates/00001/core.entity_form_display.paragraph.oe_description_list.default.yml +++ b/modules/oe_whitelabel_paragraphs/config/post_updates/00001/core.entity_form_display.paragraph.oe_description_list.default.yml @@ -4,7 +4,7 @@ dependencies: config: - field.field.paragraph.oe_description_list.field_oe_description_list_items - field.field.paragraph.oe_description_list.field_oe_title - - field.field.paragraph.oe_description_list.oe_bt_orientation + - field.field.paragraph.oe_description_list.oe_w_orientation - paragraphs.paragraphs_type.oe_description_list module: - description_list_field @@ -27,7 +27,7 @@ content: third_party_settings: { } type: string_textfield region: content - oe_bt_orientation: + oe_w_orientation: type: options_select weight: 0 region: content diff --git a/modules/oe_whitelabel_paragraphs/config/post_updates/00001/core.entity_view_display.paragraph.oe_description_list.default.yml b/modules/oe_whitelabel_paragraphs/config/post_updates/00001/core.entity_view_display.paragraph.oe_description_list.default.yml index 2e3b81d7..b303a9e9 100644 --- a/modules/oe_whitelabel_paragraphs/config/post_updates/00001/core.entity_view_display.paragraph.oe_description_list.default.yml +++ b/modules/oe_whitelabel_paragraphs/config/post_updates/00001/core.entity_view_display.paragraph.oe_description_list.default.yml @@ -2,7 +2,7 @@ langcode: en status: true dependencies: config: - - field.field.paragraph.oe_description_list.oe_bt_orientation + - field.field.paragraph.oe_description_list.oe_w_orientation - field.field.paragraph.oe_description_list.field_oe_description_list_items - field.field.paragraph.oe_description_list.field_oe_title - paragraphs.paragraphs_type.oe_description_list @@ -29,4 +29,4 @@ content: type: string region: content hidden: - oe_bt_orientation: true + oe_w_orientation: true diff --git a/modules/oe_whitelabel_paragraphs/config/post_updates/00001/field.field.paragraph.oe_description_list.oe_bt_orientation.yml b/modules/oe_whitelabel_paragraphs/config/post_updates/00001/field.field.paragraph.oe_description_list.oe_w_orientation.yml similarity index 76% rename from modules/oe_whitelabel_paragraphs/config/post_updates/00001/field.field.paragraph.oe_description_list.oe_bt_orientation.yml rename to modules/oe_whitelabel_paragraphs/config/post_updates/00001/field.field.paragraph.oe_description_list.oe_w_orientation.yml index 73b09a47..1e448506 100644 --- a/modules/oe_whitelabel_paragraphs/config/post_updates/00001/field.field.paragraph.oe_description_list.oe_bt_orientation.yml +++ b/modules/oe_whitelabel_paragraphs/config/post_updates/00001/field.field.paragraph.oe_description_list.oe_w_orientation.yml @@ -2,12 +2,12 @@ langcode: en status: true dependencies: config: - - field.storage.paragraph.oe_bt_orientation + - field.storage.paragraph.oe_w_orientation - paragraphs.paragraphs_type.oe_description_list module: - options -id: paragraph.oe_description_list.oe_bt_orientation -field_name: oe_bt_orientation +id: paragraph.oe_description_list.oe_w_orientation +field_name: oe_w_orientation entity_type: paragraph bundle: oe_description_list label: Orientation diff --git a/modules/oe_whitelabel_paragraphs/config/post_updates/00001/field.storage.paragraph.oe_bt_orientation.yml b/modules/oe_whitelabel_paragraphs/config/post_updates/00001/field.storage.paragraph.oe_w_orientation.yml similarity index 86% rename from modules/oe_whitelabel_paragraphs/config/post_updates/00001/field.storage.paragraph.oe_bt_orientation.yml rename to modules/oe_whitelabel_paragraphs/config/post_updates/00001/field.storage.paragraph.oe_w_orientation.yml index 94f290a8..f277e814 100644 --- a/modules/oe_whitelabel_paragraphs/config/post_updates/00001/field.storage.paragraph.oe_bt_orientation.yml +++ b/modules/oe_whitelabel_paragraphs/config/post_updates/00001/field.storage.paragraph.oe_w_orientation.yml @@ -4,8 +4,8 @@ dependencies: module: - options - paragraphs -id: paragraph.oe_bt_orientation -field_name: oe_bt_orientation +id: paragraph.oe_w_orientation +field_name: oe_w_orientation entity_type: paragraph type: list_string settings: diff --git a/modules/oe_whitelabel_paragraphs/config/post_updates/00003/core.entity_form_display.paragraph.oe_facts_figures.default.yml b/modules/oe_whitelabel_paragraphs/config/post_updates/00003/core.entity_form_display.paragraph.oe_facts_figures.default.yml index 96a0c1fb..d12c5363 100644 --- a/modules/oe_whitelabel_paragraphs/config/post_updates/00003/core.entity_form_display.paragraph.oe_facts_figures.default.yml +++ b/modules/oe_whitelabel_paragraphs/config/post_updates/00003/core.entity_form_display.paragraph.oe_facts_figures.default.yml @@ -5,7 +5,7 @@ dependencies: - field.field.paragraph.oe_facts_figures.field_oe_link - field.field.paragraph.oe_facts_figures.field_oe_paragraphs - field.field.paragraph.oe_facts_figures.field_oe_title - - field.field.paragraph.oe_facts_figures.oe_bt_n_columns + - field.field.paragraph.oe_facts_figures.oe_w_n_columns - paragraphs.paragraphs_type.oe_facts_figures module: - link @@ -49,7 +49,7 @@ content: size: 60 placeholder: '' third_party_settings: { } - oe_bt_n_columns: + oe_w_n_columns: weight: 6 settings: placeholder: '' diff --git a/modules/oe_whitelabel_paragraphs/config/post_updates/00003/core.entity_view_display.paragraph.oe_facts_figures.default.yml b/modules/oe_whitelabel_paragraphs/config/post_updates/00003/core.entity_view_display.paragraph.oe_facts_figures.default.yml index e9dd9cf6..6b3d6961 100644 --- a/modules/oe_whitelabel_paragraphs/config/post_updates/00003/core.entity_view_display.paragraph.oe_facts_figures.default.yml +++ b/modules/oe_whitelabel_paragraphs/config/post_updates/00003/core.entity_view_display.paragraph.oe_facts_figures.default.yml @@ -5,7 +5,7 @@ dependencies: - field.field.paragraph.oe_facts_figures.field_oe_link - field.field.paragraph.oe_facts_figures.field_oe_paragraphs - field.field.paragraph.oe_facts_figures.field_oe_title - - field.field.paragraph.oe_facts_figures.oe_bt_n_columns + - field.field.paragraph.oe_facts_figures.oe_w_n_columns - paragraphs.paragraphs_type.oe_facts_figures module: - entity_reference_revisions @@ -45,4 +45,4 @@ content: type: string region: content hidden: - oe_bt_n_columns: true + oe_w_n_columns: true diff --git a/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_facts_figures.oe_bt_n_columns.yml b/modules/oe_whitelabel_paragraphs/config/post_updates/00003/field.field.paragraph.oe_facts_figures.oe_w_n_columns.yml similarity index 78% rename from modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_facts_figures.oe_bt_n_columns.yml rename to modules/oe_whitelabel_paragraphs/config/post_updates/00003/field.field.paragraph.oe_facts_figures.oe_w_n_columns.yml index eec70a14..0165929a 100644 --- a/modules/oe_whitelabel_paragraphs/config/install/field.field.paragraph.oe_facts_figures.oe_bt_n_columns.yml +++ b/modules/oe_whitelabel_paragraphs/config/post_updates/00003/field.field.paragraph.oe_facts_figures.oe_w_n_columns.yml @@ -2,10 +2,10 @@ langcode: en status: true dependencies: config: - - field.storage.paragraph.oe_bt_n_columns + - field.storage.paragraph.oe_w_n_columns - paragraphs.paragraphs_type.oe_facts_figures -id: paragraph.oe_facts_figures.oe_bt_n_columns -field_name: oe_bt_n_columns +id: paragraph.oe_facts_figures.oe_w_n_columns +field_name: oe_w_n_columns entity_type: paragraph bundle: oe_facts_figures label: 'Number of columns' diff --git a/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_bt_n_columns.yml b/modules/oe_whitelabel_paragraphs/config/post_updates/00003/field.storage.paragraph.oe_w_n_columns.yml similarity index 82% rename from modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_bt_n_columns.yml rename to modules/oe_whitelabel_paragraphs/config/post_updates/00003/field.storage.paragraph.oe_w_n_columns.yml index f2a74071..3a1a9cbc 100644 --- a/modules/oe_whitelabel_paragraphs/config/install/field.storage.paragraph.oe_bt_n_columns.yml +++ b/modules/oe_whitelabel_paragraphs/config/post_updates/00003/field.storage.paragraph.oe_w_n_columns.yml @@ -3,8 +3,8 @@ status: true dependencies: module: - paragraphs -id: paragraph.oe_bt_n_columns -field_name: oe_bt_n_columns +id: paragraph.oe_w_n_columns +field_name: oe_w_n_columns entity_type: paragraph type: integer settings: diff --git a/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.info.yml b/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.info.yml index 5f237ddd..649b4b57 100644 --- a/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.info.yml +++ b/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.info.yml @@ -12,12 +12,12 @@ dependencies: - oe_paragraphs:oe_paragraphs_description_list config_devel: install: - - field.field.paragraph.oe_links_block.oe_bt_links_block_background - - field.field.paragraph.oe_links_block.oe_bt_links_block_orientation - - field.field.paragraph.oe_social_media_follow.oe_bt_links_block_background - - field.field.paragraph.oe_facts_figures.oe_bt_n_columns - - field.storage.paragraph.oe_bt_links_block_orientation - - field.storage.paragraph.oe_bt_links_block_background - - field.field.paragraph.oe_description_list.oe_bt_orientation - - field.storage.paragraph.oe_bt_orientation - - field.storage.paragraph.oe_bt_n_columns + - field.field.paragraph.oe_links_block.oe_w_links_block_background + - field.field.paragraph.oe_links_block.oe_w_links_block_orientation + - field.field.paragraph.oe_social_media_follow.oe_w_links_block_background + - field.field.paragraph.oe_facts_figures.oe_w_n_columns + - field.storage.paragraph.oe_w_links_block_orientation + - field.storage.paragraph.oe_w_links_block_background + - field.field.paragraph.oe_description_list.oe_w_orientation + - field.storage.paragraph.oe_w_orientation + - field.storage.paragraph.oe_w_n_columns diff --git a/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.module b/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.module index d70b613b..f6e641c3 100644 --- a/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.module +++ b/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.module @@ -47,8 +47,8 @@ function oe_whitelabel_paragraphs_theme_suggestions_field_alter(array &$suggesti function oe_whitelabel_paragraphs_preprocess_paragraph__oe_links_block(array &$variables): void { /** @var \Drupal\paragraphs\Entity\Paragraph $paragraph */ $paragraph = $variables['paragraph']; - $variables['orientation'] = $paragraph->get('oe_bt_links_block_orientation')->value; - $variables['background'] = $paragraph->get('oe_bt_links_block_background')->value; + $variables['orientation'] = $paragraph->get('oe_w_links_block_orientation')->value; + $variables['background'] = $paragraph->get('oe_w_links_block_background')->value; if (!$paragraph->get('field_oe_text')->isEmpty()) { $variables['title'] = $paragraph->get('field_oe_text')->value; } @@ -68,7 +68,7 @@ function oe_whitelabel_preprocess_paragraph__oe_social_media_follow(array &$vari /** @var \Drupal\paragraphs\Entity\Paragraph $paragraph */ $paragraph = $variables['paragraph']; $variables['orientation'] = $paragraph->get('field_oe_social_media_variant')->value; - $variables['background'] = $paragraph->get('oe_bt_links_block_background')->value; + $variables['background'] = $paragraph->get('oe_w_links_block_background')->value; if (!$paragraph->get('field_oe_title')->isEmpty()) { $variables['title'] = $paragraph->get('field_oe_title')->value; } @@ -406,7 +406,7 @@ function oe_whitelabel_preprocess_paragraph__oe_description_list(array &$variabl /** @var Drupal\paragraphs\Entity\Paragraph $paragraph */ $paragraph = $variables['paragraph']; $variables['title'] = $paragraph->get('field_oe_title')->value ?? ''; - $variables['orientation'] = $paragraph->get('oe_bt_orientation')->value; + $variables['orientation'] = $paragraph->get('oe_w_orientation')->value; foreach ($paragraph->get('field_oe_description_list_items') as $item) { $variables['items'][] = [ @@ -450,8 +450,8 @@ function oe_whitelabel_preprocess_paragraph__oe_facts_figures(array &$variables) ]; } - if (!$paragraph->get('oe_bt_n_columns')->isEmpty()) { - $variables['columns'] = $paragraph->get('oe_bt_n_columns')->value; + if (!$paragraph->get('oe_w_n_columns')->isEmpty()) { + $variables['columns'] = $paragraph->get('oe_w_n_columns')->value; } } diff --git a/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.post_update.php b/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.post_update.php index b358b83b..142f335d 100644 --- a/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.post_update.php +++ b/modules/oe_whitelabel_paragraphs/oe_whitelabel_paragraphs.post_update.php @@ -16,8 +16,8 @@ function oe_whitelabel_paragraphs_post_update_00001(array &$sandbox): void { \Drupal::service('module_installer')->install(['oe_paragraphs_description_list']); $configs = [ - 'field.storage.paragraph.oe_bt_orientation', - 'field.field.paragraph.oe_description_list.oe_bt_orientation', + 'field.storage.paragraph.oe_w_orientation', + 'field.field.paragraph.oe_description_list.oe_w_orientation', 'core.entity_form_display.paragraph.oe_description_list.default', 'core.entity_view_display.paragraph.oe_description_list.default', ]; @@ -42,8 +42,8 @@ function oe_whitelabel_paragraphs_post_update_00002(array &$sandbox): void { */ function oe_whitelabel_paragraphs_post_update_00003(array &$sandbox): void { $configs = [ - 'field.storage.paragraph.oe_bt_n_columns', - 'field.field.paragraph.oe_facts_figures.oe_bt_n_columns', + 'field.storage.paragraph.oe_w_n_columns', + 'field.field.paragraph.oe_facts_figures.oe_w_n_columns', 'core.entity_form_display.paragraph.oe_facts_figures.default', 'core.entity_view_display.paragraph.oe_facts_figures.default', ]; diff --git a/modules/oe_whitelabel_paragraphs/tests/src/Functional/ParagraphsTest.php b/modules/oe_whitelabel_paragraphs/tests/src/Functional/ParagraphsTest.php index e8ec1ef8..87956076 100644 --- a/modules/oe_whitelabel_paragraphs/tests/src/Functional/ParagraphsTest.php +++ b/modules/oe_whitelabel_paragraphs/tests/src/Functional/ParagraphsTest.php @@ -44,23 +44,23 @@ class ParagraphsTest extends BrowserTestBase { $this->getSession()->getPage()->pressButton('Add Links block'); // Assert the Links Block fields appears. - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_links][0][uri]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_links][0][title]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_text][0][value]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][oe_bt_links_block_background]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][oe_bt_links_block_orientation]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_links][0][uri]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_links][0][title]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_text][0][value]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][oe_w_links_block_background]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][oe_w_links_block_orientation]'); $this->submitForm([], 'Add another item'); $values = [ 'title[0][value]' => 'Test Links block node title', - 'oe_bt_paragraphs[0][subform][field_oe_text][0][value]' => 'EU Links', - 'oe_bt_paragraphs[0][subform][field_oe_links][0][uri]' => 'https://www.example.com', - 'oe_bt_paragraphs[0][subform][field_oe_links][0][title]' => 'Example link number 1', - 'oe_bt_paragraphs[0][subform][field_oe_links][1][uri]' => 'https://www.more-example.com', - 'oe_bt_paragraphs[0][subform][field_oe_links][1][title]' => 'Example link number 2', - 'oe_bt_paragraphs[0][subform][oe_bt_links_block_background]' => 'gray', - 'oe_bt_paragraphs[0][subform][oe_bt_links_block_orientation]' => 'vertical', + 'oe_w_paragraphs[0][subform][field_oe_text][0][value]' => 'EU Links', + 'oe_w_paragraphs[0][subform][field_oe_links][0][uri]' => 'https://www.example.com', + 'oe_w_paragraphs[0][subform][field_oe_links][0][title]' => 'Example link number 1', + 'oe_w_paragraphs[0][subform][field_oe_links][1][uri]' => 'https://www.more-example.com', + 'oe_w_paragraphs[0][subform][field_oe_links][1][title]' => 'Example link number 2', + 'oe_w_paragraphs[0][subform][oe_w_links_block_background]' => 'gray', + 'oe_w_paragraphs[0][subform][oe_w_links_block_orientation]' => 'vertical', ]; $this->submitForm($values, 'Save'); @@ -80,27 +80,27 @@ class ParagraphsTest extends BrowserTestBase { $this->getSession()->getPage()->pressButton('Add Social media follow'); // Assert the Social Media Follow fields appears. - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_social_media_links][0][uri]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_social_media_links][0][title]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_social_media_links][0][link_type]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_title][0][value]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][oe_bt_links_block_background]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_social_media_variant]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_social_media_see_more][0][uri]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_social_media_see_more][0][title]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_social_media_links][0][uri]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_social_media_links][0][title]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_social_media_links][0][link_type]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_title][0][value]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][oe_w_links_block_background]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_social_media_variant]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_social_media_see_more][0][uri]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_social_media_see_more][0][title]'); $this->submitForm([], 'Add another item'); $values = [ 'title[0][value]' => 'Test Social Media follow Links node title', - 'oe_bt_paragraphs[0][subform][field_oe_title][0][value]' => 'EU Social Media Follow Links', - 'oe_bt_paragraphs[0][subform][field_oe_social_media_links][0][uri]' => 'https://www.facebook.com', - 'oe_bt_paragraphs[0][subform][field_oe_social_media_links][0][title]' => 'Example Facebook', - 'oe_bt_paragraphs[0][subform][field_oe_social_media_links][0][link_type]' => 'facebook', - 'oe_bt_paragraphs[0][subform][oe_bt_links_block_background]' => 'transparent', - 'oe_bt_paragraphs[0][subform][field_oe_social_media_variant]' => 'horizontal', - 'oe_bt_paragraphs[0][subform][field_oe_social_media_see_more][0][uri]' => 'https://example.com', - 'oe_bt_paragraphs[0][subform][field_oe_social_media_see_more][0][title]' => 'More channels', + 'oe_w_paragraphs[0][subform][field_oe_title][0][value]' => 'EU Social Media Follow Links', + 'oe_w_paragraphs[0][subform][field_oe_social_media_links][0][uri]' => 'https://www.facebook.com', + 'oe_w_paragraphs[0][subform][field_oe_social_media_links][0][title]' => 'Example Facebook', + 'oe_w_paragraphs[0][subform][field_oe_social_media_links][0][link_type]' => 'facebook', + 'oe_w_paragraphs[0][subform][oe_w_links_block_background]' => 'transparent', + 'oe_w_paragraphs[0][subform][field_oe_social_media_variant]' => 'horizontal', + 'oe_w_paragraphs[0][subform][field_oe_social_media_see_more][0][uri]' => 'https://example.com', + 'oe_w_paragraphs[0][subform][field_oe_social_media_see_more][0][title]' => 'More channels', ]; $this->submitForm($values, 'Save'); @@ -120,15 +120,15 @@ class ParagraphsTest extends BrowserTestBase { $page = $this->getSession()->getPage(); $page->pressButton('Add Accordion'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_text][0][value]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_text_long][0][value]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_text][0][value]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_text_long][0][value]'); // Assert the Icon field is not shown. - $this->assertSession()->fieldNotExists('oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_icon][0][value]'); + $this->assertSession()->fieldNotExists('oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_icon][0][value]'); $values = [ 'title[0][value]' => 'Test Accordion', - 'oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_text][0][value]' => 'Title item 1', - 'oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_text_long][0][value]' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', + 'oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_text][0][value]' => 'Title item 1', + 'oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_text_long][0][value]' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', ]; $this->submitForm($values, 'Save'); @@ -147,23 +147,23 @@ class ParagraphsTest extends BrowserTestBase { $page = $this->getSession()->getPage(); $page->pressButton('Add Facts and figures'); // Assert the Facts and figures fields are present. - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_link][0][uri]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_link][0][title]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_title][0][value]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][oe_bt_n_columns][0][value]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_title][0][value]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_subtitle][0][value]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_plain_text_long][0][value]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_link][0][uri]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_link][0][title]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_title][0][value]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][oe_w_n_columns][0][value]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_title][0][value]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_subtitle][0][value]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_plain_text_long][0][value]'); $values = [ 'title[0][value]' => 'Test Fact and figures node title', - 'oe_bt_paragraphs[0][subform][field_oe_title][0][value]' => 'Fact and figures block', - 'oe_bt_paragraphs[0][subform][field_oe_link][0][uri]' => 'https://www.google.com', - 'oe_bt_paragraphs[0][subform][field_oe_link][0][title]' => 'Read more', - 'oe_bt_paragraphs[0][subform][oe_bt_n_columns][0][value]' => 2, - 'oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_title][0][value]' => "1529 JIRA Ticket", - 'oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_subtitle][0][value]' => "Jira Tickets", - 'oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_plain_text_long][0][value]' => "Nunc condimentum sapien ut nibh finibus suscipit vitae at justo. Morbi quis odio faucibus, commodo tortor id, elementum libero.", + 'oe_w_paragraphs[0][subform][field_oe_title][0][value]' => 'Fact and figures block', + 'oe_w_paragraphs[0][subform][field_oe_link][0][uri]' => 'https://www.google.com', + 'oe_w_paragraphs[0][subform][field_oe_link][0][title]' => 'Read more', + 'oe_w_paragraphs[0][subform][oe_w_n_columns][0][value]' => 2, + 'oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_title][0][value]' => "1529 JIRA Ticket", + 'oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_subtitle][0][value]' => "Jira Tickets", + 'oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_plain_text_long][0][value]' => "Nunc condimentum sapien ut nibh finibus suscipit vitae at justo. Morbi quis odio faucibus, commodo tortor id, elementum libero.", ]; $this->submitForm($values, 'Save'); @@ -185,7 +185,7 @@ class ParagraphsTest extends BrowserTestBase { $page = $this->getSession()->getPage(); $page->pressButton('Add Fact'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_icon]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_icon]'); $allowed_values = [ '_none', 'arrow-down', @@ -211,7 +211,7 @@ class ParagraphsTest extends BrowserTestBase { foreach ($allowed_values as $allowed_value) { $this->assertSession()->elementsCount('css', 'option[value="' . $allowed_value . '"]', 1); } - $this->assertSession()->elementsCount('css', 'select#edit-oe-bt-paragraphs-0-subform-field-oe-icon option', 20); + $this->assertSession()->elementsCount('css', 'select#edit-oe-w-paragraphs-0-subform-field-oe-icon option', 20); } @@ -223,20 +223,20 @@ class ParagraphsTest extends BrowserTestBase { $this->getSession()->getPage()->pressButton('Add Description list'); $assert_session = $this->assertSession(); - $assert_session->fieldExists('oe_bt_paragraphs[0][subform][field_oe_title][0][value]'); + $assert_session->fieldExists('oe_w_paragraphs[0][subform][field_oe_title][0][value]'); $this->assertEquals([ 'horizontal' => 'Horizontal', 'vertical' => 'Vertical', - ], $this->getOptions('oe_bt_paragraphs[0][subform][oe_bt_orientation]')); - $assert_session->fieldExists('oe_bt_paragraphs[0][subform][field_oe_description_list_items][0][term]'); - $assert_session->fieldExists('oe_bt_paragraphs[0][subform][field_oe_description_list_items][0][description][value]'); + ], $this->getOptions('oe_w_paragraphs[0][subform][oe_w_orientation]')); + $assert_session->fieldExists('oe_w_paragraphs[0][subform][field_oe_description_list_items][0][term]'); + $assert_session->fieldExists('oe_w_paragraphs[0][subform][field_oe_description_list_items][0][description][value]'); $values = [ 'title[0][value]' => 'Test Description list node title', - 'oe_bt_paragraphs[0][subform][field_oe_title][0][value]' => 'Description list paragraph', - 'oe_bt_paragraphs[0][subform][oe_bt_orientation]' => 'horizontal', - 'oe_bt_paragraphs[0][subform][field_oe_description_list_items][0][term]' => 'Aliquam ultricies', - 'oe_bt_paragraphs[0][subform][field_oe_description_list_items][0][description][value]' => 'Donec et leo ac velit posuere tempor mattis ac mi. Vivamus nec dictum lectus. Aliquam ultricies placerat eros, vitae ornare sem.', + 'oe_w_paragraphs[0][subform][field_oe_title][0][value]' => 'Description list paragraph', + 'oe_w_paragraphs[0][subform][oe_w_orientation]' => 'horizontal', + 'oe_w_paragraphs[0][subform][field_oe_description_list_items][0][term]' => 'Aliquam ultricies', + 'oe_w_paragraphs[0][subform][field_oe_description_list_items][0][description][value]' => 'Donec et leo ac velit posuere tempor mattis ac mi. Vivamus nec dictum lectus. Aliquam ultricies placerat eros, vitae ornare sem.', ]; $this->submitForm($values, 'Save'); @@ -257,26 +257,26 @@ class ParagraphsTest extends BrowserTestBase { $page->pressButton('Add Listing item block'); // Assert the Listing fields appears. - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][variant]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_title][0][value]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_list_item_block_layout]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_link][0][uri]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_title][0][value]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_text_long][0][value]'); - $this->assertSession()->fieldExists('oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_meta][0][value]'); - $this->assertSession()->fieldExists('files[oe_bt_paragraphs_0_subform_field_oe_paragraphs_0_subform_field_oe_image_0]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][variant]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_title][0][value]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_list_item_block_layout]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_link][0][uri]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_title][0][value]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_text_long][0][value]'); + $this->assertSession()->fieldExists('oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_meta][0][value]'); + $this->assertSession()->fieldExists('files[oe_w_paragraphs_0_subform_field_oe_paragraphs_0_subform_field_oe_image_0]'); $this->submitForm([], 'Add another item'); $values = [ 'title[0][value]' => 'Listing node title', - 'oe_bt_paragraphs[0][variant]' => 'default', - 'oe_bt_paragraphs[0][subform][field_oe_title][0][value]' => 'Listing example', - 'oe_bt_paragraphs[0][subform][field_oe_list_item_block_layout]' => 'two_columns', - 'oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_link][0][uri]' => 'https://www.example.com', - 'oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_title][0][value]' => 'Card title', - 'oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_text_long][0][value]' => 'Lorem Ipsum dolor sit amet.', - 'oe_bt_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_meta][0][value]' => 'label1', + 'oe_w_paragraphs[0][variant]' => 'default', + 'oe_w_paragraphs[0][subform][field_oe_title][0][value]' => 'Listing example', + 'oe_w_paragraphs[0][subform][field_oe_list_item_block_layout]' => 'two_columns', + 'oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_link][0][uri]' => 'https://www.example.com', + 'oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_title][0][value]' => 'Card title', + 'oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_text_long][0][value]' => 'Lorem Ipsum dolor sit amet.', + 'oe_w_paragraphs[0][subform][field_oe_paragraphs][0][subform][field_oe_meta][0][value]' => 'label1', ]; $this->submitForm($values, 'Save'); @@ -300,7 +300,7 @@ class ParagraphsTest extends BrowserTestBase { // Add a paragraphs field. $field_storage = FieldStorageConfig::create([ - 'field_name' => 'oe_bt_paragraphs', + 'field_name' => 'oe_w_paragraphs', 'entity_type' => 'node', 'type' => 'entity_reference_revisions', 'cardinality' => '-1', @@ -319,11 +319,11 @@ class ParagraphsTest extends BrowserTestBase { ])->save(); $form_display = \Drupal::service('entity_display.repository')->getFormDisplay('node', 'paragraphs_test'); - $form_display = $form_display->setComponent('oe_bt_paragraphs', ['type' => 'oe_paragraphs_variants']); + $form_display = $form_display->setComponent('oe_w_paragraphs', ['type' => 'oe_paragraphs_variants']); $form_display->save(); $view_display = \Drupal::service('entity_display.repository')->getViewDisplay('node', 'paragraphs_test'); - $view_display->setComponent('oe_bt_paragraphs', ['type' => 'entity_reference_revisions_entity_view']); + $view_display->setComponent('oe_w_paragraphs', ['type' => 'entity_reference_revisions_entity_view']); $view_display->save(); } diff --git a/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/ContentRowTest.php b/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/ContentRowTest.php index e58f4bf2..bbd451ed 100644 --- a/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/ContentRowTest.php +++ b/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/ContentRowTest.php @@ -70,8 +70,8 @@ class ContentRowTest extends ParagraphsTestBase { Paragraph::create([ 'type' => 'oe_links_block', 'field_oe_text' => 'Links block test', - 'oe_bt_links_block_orientation' => 'vertical', - 'oe_bt_links_block_background' => 'gray', + 'oe_w_links_block_orientation' => 'vertical', + 'oe_w_links_block_background' => 'gray', 'field_oe_links' => [ [ 'title' => 'Example 2', @@ -106,7 +106,7 @@ class ContentRowTest extends ParagraphsTestBase { 'type' => 'oe_social_media_follow', 'field_oe_title' => 'Social media block', 'field_oe_social_media_variant' => 'horizontal', - 'oe_bt_links_block_background' => 'gray', + 'oe_w_links_block_background' => 'gray', 'field_oe_social_media_links' => [ [ 'title' => 'Email', diff --git a/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/DescriptionListTest.php b/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/DescriptionListTest.php index 2e7132df..d96781b1 100644 --- a/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/DescriptionListTest.php +++ b/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/DescriptionListTest.php @@ -20,7 +20,7 @@ class DescriptionListTest extends ParagraphsTestBase { $paragraph = Paragraph::create([ 'type' => 'oe_description_list', 'field_oe_title' => 'Description list paragraph', - 'oe_bt_orientation' => 'horizontal', + 'oe_w_orientation' => 'horizontal', 'field_oe_description_list_items' => [ 0 => [ 'term' => 'Aliquam ultricies', @@ -63,7 +63,7 @@ class DescriptionListTest extends ParagraphsTestBase { ); // Testing: Description list paragraph with vertical variant. - $paragraph->get('oe_bt_orientation')->setValue('vertical'); + $paragraph->get('oe_w_orientation')->setValue('vertical'); $paragraph->save(); $html = $this->renderParagraph($paragraph); diff --git a/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/EntityReferenceRevisionTest.php b/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/EntityReferenceRevisionTest.php index 5bc9cb59..9f7e0668 100644 --- a/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/EntityReferenceRevisionTest.php +++ b/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/EntityReferenceRevisionTest.php @@ -65,8 +65,8 @@ class EntityReferenceRevisionTest extends ParagraphsTestBase { $paragraph1 = Paragraph::create([ 'type' => 'oe_links_block', 'field_oe_text' => 'More information', - 'oe_bt_links_block_orientation' => 'vertical', - 'oe_bt_links_block_background' => 'gray', + 'oe_w_links_block_orientation' => 'vertical', + 'oe_w_links_block_background' => 'gray', 'field_oe_links' => [ [ 'title' => 'European Commission', diff --git a/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/FactsFiguresTest.php b/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/FactsFiguresTest.php index b5a9267f..23633bad 100644 --- a/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/FactsFiguresTest.php +++ b/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/FactsFiguresTest.php @@ -70,7 +70,7 @@ class FactsFiguresTest extends ParagraphsTestBase { 'uri' => 'https://www.readmore.com', 'title' => 'Read more', ], - 'oe_bt_n_columns' => 3, + 'oe_w_n_columns' => 3, 'field_oe_paragraphs' => $paragraph_fact, ]); $paragraph->save(); @@ -190,7 +190,7 @@ class FactsFiguresTest extends ParagraphsTestBase { ); // Testing: 2 columns. - $paragraph->get('oe_bt_n_columns')->setValue('2'); + $paragraph->get('oe_w_n_columns')->setValue('2'); $paragraph->save(); $html = $this->renderParagraph($paragraph); @@ -199,7 +199,7 @@ class FactsFiguresTest extends ParagraphsTestBase { $this->assertCount(1, $crawler->filter('div.row-cols-md-2.row')); // Testing: 1 columns. - $paragraph->get('oe_bt_n_columns')->setValue('1'); + $paragraph->get('oe_w_n_columns')->setValue('1'); $paragraph->save(); $html = $this->renderParagraph($paragraph); diff --git a/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/LinksBlockTest.php b/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/LinksBlockTest.php index 67b8c411..e3cf89e7 100644 --- a/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/LinksBlockTest.php +++ b/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/LinksBlockTest.php @@ -21,8 +21,8 @@ class LinksBlockTest extends LinksBlockAssertion { $paragraph = Paragraph::create([ 'type' => 'oe_links_block', 'field_oe_text' => 'More information', - 'oe_bt_links_block_orientation' => 'vertical', - 'oe_bt_links_block_background' => 'gray', + 'oe_w_links_block_orientation' => 'vertical', + 'oe_w_links_block_background' => 'gray', 'field_oe_links' => $this->getBlockLinks(), ]); $paragraph->save(); @@ -36,7 +36,7 @@ class LinksBlockTest extends LinksBlockAssertion { $this->assertVerticalLinks($crawler); // Testing: LinksBlock horizontal gray. - $paragraph->get('oe_bt_links_block_orientation')->setValue('horizontal'); + $paragraph->get('oe_w_links_block_orientation')->setValue('horizontal'); $paragraph->save(); $html = $this->renderParagraph($paragraph); @@ -47,8 +47,8 @@ class LinksBlockTest extends LinksBlockAssertion { $this->assertHorizontalLinks($crawler, FALSE); // Testing: LinksBlock vertical transparent. - $paragraph->get('oe_bt_links_block_orientation')->setValue('vertical'); - $paragraph->get('oe_bt_links_block_background')->setValue('transparent'); + $paragraph->get('oe_w_links_block_orientation')->setValue('vertical'); + $paragraph->get('oe_w_links_block_background')->setValue('transparent'); $paragraph->save(); $html = $this->renderParagraph($paragraph); @@ -59,7 +59,7 @@ class LinksBlockTest extends LinksBlockAssertion { $this->assertVerticalLinks($crawler); // Testing: LinksBlock horizontal transparent. - $paragraph->get('oe_bt_links_block_orientation')->setValue('horizontal'); + $paragraph->get('oe_w_links_block_orientation')->setValue('horizontal'); $paragraph->save(); $html = $this->renderParagraph($paragraph); diff --git a/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/SocialMediaFollowTest.php b/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/SocialMediaFollowTest.php index dc38c36e..6834eafb 100644 --- a/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/SocialMediaFollowTest.php +++ b/modules/oe_whitelabel_paragraphs/tests/src/Kernel/Paragraphs/SocialMediaFollowTest.php @@ -22,7 +22,7 @@ class SocialMediaFollowTest extends LinksBlockAssertion { 'type' => 'oe_social_media_follow', 'field_oe_title' => 'Social media title', 'field_oe_social_media_variant' => 'horizontal', - 'oe_bt_links_block_background' => 'gray', + 'oe_w_links_block_background' => 'gray', 'field_oe_social_media_links' => $this->getSocialMediaLinks(), 'field_oe_social_media_see_more' => [ 'title' => 'Other social networks', @@ -58,7 +58,7 @@ class SocialMediaFollowTest extends LinksBlockAssertion { // Testing: SocialMediaFollow horizontal transparent. $paragraph->get('field_oe_social_media_variant')->setValue('horizontal'); - $paragraph->get('oe_bt_links_block_background')->setValue('transparent'); + $paragraph->get('oe_w_links_block_background')->setValue('transparent'); $paragraph->save(); $html = $this->renderParagraph($paragraph); @@ -73,7 +73,7 @@ class SocialMediaFollowTest extends LinksBlockAssertion { // Testing: SocialMediaFollow vertical transparent. $paragraph->get('field_oe_social_media_variant')->setValue('vertical'); - $paragraph->get('oe_bt_links_block_background')->setValue('transparent'); + $paragraph->get('oe_w_links_block_background')->setValue('transparent'); $paragraph->save(); $html = $this->renderParagraph($paragraph); -- GitLab