From d92eeca6c5093254460b07894db2b784f76d22c0 Mon Sep 17 00:00:00 2001 From: Md Nadim Hossain Date: Mon, 6 Mar 2023 15:57:26 +1100 Subject: [PATCH 1/8] Removed depricated configs news_listing. --- ...ding_page.field_landing_page_component.yml | 4 -- ...landing_page.field_landing_page_header.yml | 3 -- ...ng_page.field_landing_page_hero_banner.yml | 3 -- ...ph.card_carousel.field_paragraph_items.yml | 3 -- ..._events.field_paragraph_cta_card_event.yml | 3 -- ....statistics_grid.field_statistic_block.yml | 3 -- ...aragraphs.paragraphs_type.news_listing.yml | 8 --- ...display.paragraph.news_listing.default.yml | 44 ---------------- ...display.paragraph.news_listing.default.yml | 29 ----------- ...aph.news_listing.field_paragraph_title.yml | 18 ------- ...aph.news_listing.field_paragraph_topic.yml | 30 ----------- ...aragraphs.paragraphs_type.news_listing.yml | 9 ---- tide_landing_page.info.yml | 4 -- tide_landing_page.install | 50 +++++++++++++++++++ 14 files changed, 50 insertions(+), 161 deletions(-) delete mode 100644 config/install/paragraphs.paragraphs_type.news_listing.yml delete mode 100644 config/optional/core.entity_form_display.paragraph.news_listing.default.yml delete mode 100644 config/optional/core.entity_view_display.paragraph.news_listing.default.yml delete mode 100644 config/optional/field.field.paragraph.news_listing.field_paragraph_title.yml delete mode 100644 config/optional/field.field.paragraph.news_listing.field_paragraph_topic.yml delete mode 100644 config/optional/paragraphs.paragraphs_type.news_listing.yml diff --git a/config/install/field.field.node.landing_page.field_landing_page_component.yml b/config/install/field.field.node.landing_page.field_landing_page_component.yml index 6d835820..27e63682 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_component.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_component.yml @@ -52,7 +52,6 @@ settings: timelines: timelines call_to_action: call_to_action latest_events: latest_events - news_listing: news_listing data_table: data_table card_event: card_event card_event_auto: card_event_auto @@ -109,9 +108,6 @@ settings: form_embed_openforms: enabled: true weight: 23 - news_listing: - enabled: true - weight: -10 navigation_card: enabled: true weight: -29 diff --git a/config/install/field.field.node.landing_page.field_landing_page_header.yml b/config/install/field.field.node.landing_page.field_landing_page_header.yml index bd529a99..a8205117 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_header.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_header.yml @@ -74,9 +74,6 @@ settings: links: weight: 44 enabled: false - news_listing: - weight: 45 - enabled: false phone: weight: 46 enabled: false diff --git a/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml b/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml index 8d571cc4..3f7bbec0 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml @@ -93,9 +93,6 @@ settings: media_gallery: weight: 62 enabled: false - news_listing: - weight: 63 - enabled: false phone: weight: 64 enabled: false diff --git a/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml b/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml index a388bbe2..5c1d5b08 100644 --- a/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml +++ b/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml @@ -92,9 +92,6 @@ settings: media_gallery: weight: -37 enabled: false - news_listing: - weight: -36 - enabled: false latest_events: weight: -35 enabled: false diff --git a/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml b/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml index a9ebdaa6..2318977e 100644 --- a/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml +++ b/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml @@ -81,9 +81,6 @@ settings: media_gallery: weight: 52 enabled: false - news_listing: - weight: 53 - enabled: false phone: weight: 54 enabled: false diff --git a/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml b/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml index c012a91d..5f66e71c 100644 --- a/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml +++ b/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml @@ -219,9 +219,6 @@ settings: navigation_card: weight: 142 enabled: false - news_listing: - weight: 143 - enabled: false owner: weight: 144 enabled: false diff --git a/config/install/paragraphs.paragraphs_type.news_listing.yml b/config/install/paragraphs.paragraphs_type.news_listing.yml deleted file mode 100644 index 1054de2a..00000000 --- a/config/install/paragraphs.paragraphs_type.news_listing.yml +++ /dev/null @@ -1,8 +0,0 @@ -langcode: en -status: true -dependencies: { } -id: news_listing -label: 'News listing' -icon_uuid: null -description: '' -behavior_plugins: { } diff --git a/config/optional/core.entity_form_display.paragraph.news_listing.default.yml b/config/optional/core.entity_form_display.paragraph.news_listing.default.yml deleted file mode 100644 index ca653c71..00000000 --- a/config/optional/core.entity_form_display.paragraph.news_listing.default.yml +++ /dev/null @@ -1,44 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.field.paragraph.news_listing.field_paragraph_title - - field.field.paragraph.news_listing.field_paragraph_topic - - paragraphs.paragraphs_type.news_listing - module: - - maxlength -id: paragraph.news_listing.default -targetEntityType: paragraph -bundle: news_listing -mode: default -content: - field_paragraph_title: - weight: 0 - settings: - size: 60 - placeholder: '' - third_party_settings: - maxlength: - maxlength_js: 150 - maxlength_js_label: 'Content limited to @limit characters, remaining: @remaining' - type: string_textfield - region: content - field_paragraph_topic: - weight: 1 - settings: - match_operator: CONTAINS - size: 60 - placeholder: '' - third_party_settings: { } - type: entity_reference_autocomplete - region: content - moderation_state: - type: moderation_state_default - weight: 100 - settings: { } - region: content - third_party_settings: { } -hidden: - created: true - status: true - uid: true diff --git a/config/optional/core.entity_view_display.paragraph.news_listing.default.yml b/config/optional/core.entity_view_display.paragraph.news_listing.default.yml deleted file mode 100644 index a7bdba4d..00000000 --- a/config/optional/core.entity_view_display.paragraph.news_listing.default.yml +++ /dev/null @@ -1,29 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.field.paragraph.news_listing.field_paragraph_title - - field.field.paragraph.news_listing.field_paragraph_topic - - paragraphs.paragraphs_type.news_listing -id: paragraph.news_listing.default -targetEntityType: paragraph -bundle: news_listing -mode: default -content: - field_paragraph_title: - weight: 1 - label: above - settings: - link_to_entity: false - third_party_settings: { } - type: string - region: content - field_paragraph_topic: - weight: 0 - label: above - settings: - link: true - third_party_settings: { } - type: entity_reference_label - region: content -hidden: { } diff --git a/config/optional/field.field.paragraph.news_listing.field_paragraph_title.yml b/config/optional/field.field.paragraph.news_listing.field_paragraph_title.yml deleted file mode 100644 index 6fcc6ebd..00000000 --- a/config/optional/field.field.paragraph.news_listing.field_paragraph_title.yml +++ /dev/null @@ -1,18 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_title - - paragraphs.paragraphs_type.news_listing -id: paragraph.news_listing.field_paragraph_title -field_name: field_paragraph_title -entity_type: paragraph -bundle: news_listing -label: Title -description: '' -required: false -translatable: true -default_value: { } -default_value_callback: '' -settings: { } -field_type: string diff --git a/config/optional/field.field.paragraph.news_listing.field_paragraph_topic.yml b/config/optional/field.field.paragraph.news_listing.field_paragraph_topic.yml deleted file mode 100644 index 54ba7ccc..00000000 --- a/config/optional/field.field.paragraph.news_listing.field_paragraph_topic.yml +++ /dev/null @@ -1,30 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_topic - - paragraphs.paragraphs_type.news_listing - - taxonomy.vocabulary.tags - - taxonomy.vocabulary.topic -id: paragraph.news_listing.field_paragraph_topic -field_name: field_paragraph_topic -entity_type: paragraph -bundle: news_listing -label: 'Topic / Tag' -description: 'To display a filtered listing of 6 latest news items, type in the topics and tags you want to filter by. If you don''t enter any topics or tags, all latest news will be displayed.' -required: false -translatable: true -default_value: { } -default_value_callback: '' -settings: - handler: 'default:taxonomy_term' - handler_settings: - target_bundles: - tags: tags - topic: topic - sort: - field: name - direction: asc - auto_create: false - auto_create_bundle: tags -field_type: entity_reference diff --git a/config/optional/paragraphs.paragraphs_type.news_listing.yml b/config/optional/paragraphs.paragraphs_type.news_listing.yml deleted file mode 100644 index aec5c85e..00000000 --- a/config/optional/paragraphs.paragraphs_type.news_listing.yml +++ /dev/null @@ -1,9 +0,0 @@ -langcode: en -status: true -dependencies: { } -id: news_listing -label: 'News listing' -icon_uuid: 8a12a86c-7c9b-4d43-a70a-d4a6ee729d96 -icon_default: 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjgiIGhlaWdodD0iNzciIHZpZXdCb3g9IjAgMCA2OCA3NyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjY4IiBoZWlnaHQ9Ijc3IiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSI3IiB5PSIxNSIgd2lkdGg9IjU0IiBoZWlnaHQ9IjMiIGZpbGw9IiNDNEM0QzQiLz4KPHJlY3QgeD0iNyIgeT0iNDkiIHdpZHRoPSI0NSIgaGVpZ2h0PSIzIiBmaWxsPSIjQzRDNEM0Ii8+CjxyZWN0IHg9IjciIHk9IjMyIiB3aWR0aD0iMzAiIGhlaWdodD0iMyIgZmlsbD0iI0M0QzRDNCIvPgo8cmVjdCB4PSI3IiB5PSI2NiIgd2lkdGg9IjM4IiBoZWlnaHQ9IjMiIGZpbGw9IiNDNEM0QzQiLz4KPHJlY3QgeD0iNyIgeT0iNyIgd2lkdGg9IjMwIiBoZWlnaHQ9IjUiIGZpbGw9IiNBMUExQTEiLz4KPHJlY3QgeD0iNyIgeT0iNDEiIHdpZHRoPSIxNyIgaGVpZ2h0PSI1IiBmaWxsPSIjQTFBMUExIi8+CjxyZWN0IHg9IjciIHk9IjI0IiB3aWR0aD0iMjAiIGhlaWdodD0iNSIgZmlsbD0iI0ExQTFBMSIvPgo8cmVjdCB4PSI3IiB5PSI1OCIgd2lkdGg9IjI4IiBoZWlnaHQ9IjUiIGZpbGw9IiNBMUExQTEiLz4KPC9zdmc+Cg==' -description: 'Display a list of links to 6 recent news items based on a specific topic.' -behavior_plugins: { } diff --git a/tide_landing_page.info.yml b/tide_landing_page.info.yml index 2e783bbb..23fdb25e 100644 --- a/tide_landing_page.info.yml +++ b/tide_landing_page.info.yml @@ -80,11 +80,9 @@ config_devel: - core.entity_view_display.paragraph.key_journeys.default - core.entity_view_display.paragraph.media_gallery.default - core.entity_form_display.paragraph.contact_us.default - - core.entity_form_display.paragraph.news_listing.default - core.entity_form_display.paragraph.phone.default - core.entity_form_display.paragraph.social_link.default - core.entity_view_display.paragraph.contact_us.default - - core.entity_view_display.paragraph.news_listing.default - core.entity_view_display.paragraph.phone.default - core.entity_view_display.paragraph.social_link.default - field.field.block_content.campaign.body @@ -189,7 +187,6 @@ config_devel: - field.field.paragraph.latest_events.field_paragraph_cta_card_event - field.field.paragraph.latest_events.field_paragraph_title - field.field.paragraph.media_gallery.field_paragraph_media_gallery - - field.field.paragraph.news_listing.field_paragraph_title - field.field.node.landing_page.field_landing_page_contact - field.field.node.landing_page.field_landing_page_show_contact - field.field.node.landing_page.field_landing_page_summary @@ -288,7 +285,6 @@ config_devel: - paragraphs.paragraphs_type.latest_events - paragraphs.paragraphs_type.media_gallery - paragraphs.paragraphs_type.contact_us - - paragraphs.paragraphs_type.news_listing - paragraphs.paragraphs_type.phone - paragraphs.paragraphs_type.social_link - paragraphs.paragraphs_type.timelines diff --git a/tide_landing_page.install b/tide_landing_page.install index 8da53c87..dc802291 100644 --- a/tide_landing_page.install +++ b/tide_landing_page.install @@ -2526,3 +2526,53 @@ function tide_landing_page_update_8048() { } } } + +/** + * Remove depricated paragraph news_listing. + */ +function tide_landing_page_update_8049() { + // Clear the db. + $ids = \Drupal::entityQuery('paragraph')->execute(); + foreach ($ids as $id) { + $paragraph = Paragraph::load($id); + if ($paragraph instanceof ParagraphInterface && $paragraph->bundle() == 'news_listing') { + $paragraph->delete(); + } + } + + // Delete the configs. + $config_lists = [ + 'core.entity_form_display.paragraph.news_listing.default', + 'core.entity_view_display.paragraph.news_listing.default', + 'field.field.paragraph.news_listing.field_paragraph_title', + 'field.field.paragraph.news_listing.field_paragraph_topic', + 'paragraphs.paragraphs_type.news_listing', + ]; + foreach ($config_lists as $config) { + $config = \Drupal::configFactory()->getEditable($config); + if ($config) { + $config->delete(); + } + } + +} + +/** + * Removed news_listing option from the landing_page widget. + */ +function tide_landing_page_update_8050() { + $field = FieldConfig::loadByName('node', 'landing_page', 'field_landing_page_component'); + if ($field) { + $handler_settings = $field->getSetting('handler_settings'); + if (isset($handler_settings['target_bundles'])) { + if (isset($handler_settings['target_bundles']['news_listing'])) { + unset($handler_settings['target_bundles']['news_listing']); + } + if (isset($handler_settings['target_bundles_drag_drop']['news_listing'])) { + unset($handler_settings['target_bundles_drag_drop']['news_listing']); + } + $field->setSetting('handler_settings', $handler_settings); + $field->save(); + } + } +} From 9cee7f1c490d8160e2ad3b812ecef20d4c98510c Mon Sep 17 00:00:00 2001 From: Md Nadim Hossain Date: Mon, 6 Mar 2023 16:16:31 +1100 Subject: [PATCH 2/8] Removed card_event depricated component. --- ...m_display.paragraph.card_event.default.yml | 94 -------- ...w_display.paragraph.card_event.default.yml | 83 ------- ...ragraph.card_event.field_paragraph_cta.yml | 22 -- ...agraph.card_event.field_paragraph_date.yml | 20 -- ....card_event.field_paragraph_date_range.yml | 20 -- ...ph.card_event.field_paragraph_location.yml | 37 --- ...graph.card_event.field_paragraph_media.yml | 27 --- ...raph.card_event.field_paragraph_status.yml | 18 -- ...aph.card_event.field_paragraph_summary.yml | 18 -- ...graph.card_event.field_paragraph_title.yml | 18 -- ...graph.card_event.field_paragraph_topic.yml | 28 --- ...orage.paragraph.field_paragraph_status.yml | 20 -- .../paragraphs.paragraphs_type.card_event.yml | 8 - ..._resource_config.paragraph--card_event.yml | 212 ------------------ tide_landing_page.install | 40 +++- 15 files changed, 32 insertions(+), 633 deletions(-) delete mode 100644 config/install/core.entity_form_display.paragraph.card_event.default.yml delete mode 100644 config/install/core.entity_view_display.paragraph.card_event.default.yml delete mode 100644 config/install/field.field.paragraph.card_event.field_paragraph_cta.yml delete mode 100644 config/install/field.field.paragraph.card_event.field_paragraph_date.yml delete mode 100644 config/install/field.field.paragraph.card_event.field_paragraph_date_range.yml delete mode 100644 config/install/field.field.paragraph.card_event.field_paragraph_location.yml delete mode 100644 config/install/field.field.paragraph.card_event.field_paragraph_media.yml delete mode 100644 config/install/field.field.paragraph.card_event.field_paragraph_status.yml delete mode 100644 config/install/field.field.paragraph.card_event.field_paragraph_summary.yml delete mode 100644 config/install/field.field.paragraph.card_event.field_paragraph_title.yml delete mode 100644 config/install/field.field.paragraph.card_event.field_paragraph_topic.yml delete mode 100644 config/install/field.storage.paragraph.field_paragraph_status.yml delete mode 100644 config/install/paragraphs.paragraphs_type.card_event.yml delete mode 100644 config/optional/jsonapi_extras.jsonapi_resource_config.paragraph--card_event.yml diff --git a/config/install/core.entity_form_display.paragraph.card_event.default.yml b/config/install/core.entity_form_display.paragraph.card_event.default.yml deleted file mode 100644 index 49d0bfad..00000000 --- a/config/install/core.entity_form_display.paragraph.card_event.default.yml +++ /dev/null @@ -1,94 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - entity_browser.browser.tide_image_browser - - field.field.paragraph.card_event.field_paragraph_cta - - field.field.paragraph.card_event.field_paragraph_date_range - - field.field.paragraph.card_event.field_paragraph_location - - field.field.paragraph.card_event.field_paragraph_media - - field.field.paragraph.card_event.field_paragraph_summary - - field.field.paragraph.card_event.field_paragraph_title - - field.field.paragraph.card_event.field_paragraph_topic - - paragraphs.paragraphs_type.card_event - module: - - address - - datetime_range - - entity_browser - - link - - maxlength -id: paragraph.card_event.default -targetEntityType: paragraph -bundle: card_event -mode: default -content: - field_paragraph_cta: - weight: 6 - settings: - placeholder_url: '' - placeholder_title: '' - third_party_settings: { } - type: link_default - region: content - field_paragraph_date_range: - weight: 3 - settings: { } - third_party_settings: { } - type: daterange_default - region: content - field_paragraph_location: - weight: 4 - settings: { } - third_party_settings: { } - type: address_default - region: content - field_paragraph_media: - weight: 1 - settings: - entity_browser: tide_image_browser - field_widget_display: rendered_entity - field_widget_edit: true - field_widget_remove: true - selection_mode: selection_append - field_widget_display_settings: - view_mode: media_browser_preview - open: false - field_widget_replace: false - third_party_settings: { } - type: entity_browser_entity_reference - region: content - field_paragraph_summary: - type: string_textarea - weight: 5 - settings: - rows: 5 - placeholder: '' - third_party_settings: - maxlength: - maxlength_js: 200 - maxlength_js_label: 'Content limited to @limit characters, remaining: @remaining' - maxlength_js_enforce: false - maxlength_js_truncate_html: false - region: content - field_paragraph_title: - weight: 0 - settings: - size: 60 - placeholder: '' - third_party_settings: { } - type: string_textfield - region: content - field_paragraph_topic: - weight: 7 - settings: - match_operator: CONTAINS - size: 60 - placeholder: '' - third_party_settings: { } - type: entity_reference_autocomplete - region: content -hidden: - created: true - moderation_state: true - status: true - uid: true diff --git a/config/install/core.entity_view_display.paragraph.card_event.default.yml b/config/install/core.entity_view_display.paragraph.card_event.default.yml deleted file mode 100644 index dece1fe6..00000000 --- a/config/install/core.entity_view_display.paragraph.card_event.default.yml +++ /dev/null @@ -1,83 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.field.paragraph.card_event.field_paragraph_cta - - field.field.paragraph.card_event.field_paragraph_date_range - - field.field.paragraph.card_event.field_paragraph_location - - field.field.paragraph.card_event.field_paragraph_media - - field.field.paragraph.card_event.field_paragraph_summary - - field.field.paragraph.card_event.field_paragraph_title - - field.field.paragraph.card_event.field_paragraph_topic - - paragraphs.paragraphs_type.card_event - module: - - address - - datetime_range - - link -id: paragraph.card_event.default -targetEntityType: paragraph -bundle: card_event -mode: default -content: - field_paragraph_cta: - weight: 1 - label: above - settings: - trim_length: 80 - url_only: false - url_plain: false - rel: '' - target: '' - third_party_settings: { } - type: link - region: content - field_paragraph_date_range: - weight: 5 - label: above - settings: - separator: '-' - format_type: medium - timezone_override: '' - third_party_settings: { } - type: daterange_default - region: content - field_paragraph_location: - weight: 6 - label: above - settings: { } - third_party_settings: { } - type: address_default - region: content - field_paragraph_media: - type: entity_reference_entity_view - weight: 3 - label: above - settings: - view_mode: default - link: false - third_party_settings: { } - region: content - field_paragraph_summary: - type: basic_string - weight: 2 - label: above - settings: { } - third_party_settings: { } - region: content - field_paragraph_title: - weight: 0 - label: above - settings: - link_to_entity: false - third_party_settings: { } - type: string - region: content - field_paragraph_topic: - weight: 7 - label: above - settings: - link: true - third_party_settings: { } - type: entity_reference_label - region: content -hidden: { } diff --git a/config/install/field.field.paragraph.card_event.field_paragraph_cta.yml b/config/install/field.field.paragraph.card_event.field_paragraph_cta.yml deleted file mode 100644 index 2303be68..00000000 --- a/config/install/field.field.paragraph.card_event.field_paragraph_cta.yml +++ /dev/null @@ -1,22 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_cta - - paragraphs.paragraphs_type.card_event - module: - - link -id: paragraph.card_event.field_paragraph_cta -field_name: field_paragraph_cta -entity_type: paragraph -bundle: card_event -label: CTA -description: '' -required: false -translatable: true -default_value: { } -default_value_callback: '' -settings: - link_type: 17 - title: 2 -field_type: link diff --git a/config/install/field.field.paragraph.card_event.field_paragraph_date.yml b/config/install/field.field.paragraph.card_event.field_paragraph_date.yml deleted file mode 100644 index f467591b..00000000 --- a/config/install/field.field.paragraph.card_event.field_paragraph_date.yml +++ /dev/null @@ -1,20 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_date - - paragraphs.paragraphs_type.card_event - module: - - datetime -id: paragraph.card_event.field_paragraph_date -field_name: field_paragraph_date -entity_type: paragraph -bundle: card_event -label: Date -description: '' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: datetime diff --git a/config/install/field.field.paragraph.card_event.field_paragraph_date_range.yml b/config/install/field.field.paragraph.card_event.field_paragraph_date_range.yml deleted file mode 100644 index 77bf6981..00000000 --- a/config/install/field.field.paragraph.card_event.field_paragraph_date_range.yml +++ /dev/null @@ -1,20 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_date_range - - paragraphs.paragraphs_type.card_event - module: - - datetime_range -id: paragraph.card_event.field_paragraph_date_range -field_name: field_paragraph_date_range -entity_type: paragraph -bundle: card_event -label: 'Date Range' -description: '' -required: true -translatable: true -default_value: { } -default_value_callback: '' -settings: { } -field_type: daterange diff --git a/config/install/field.field.paragraph.card_event.field_paragraph_location.yml b/config/install/field.field.paragraph.card_event.field_paragraph_location.yml deleted file mode 100644 index 417e0dc7..00000000 --- a/config/install/field.field.paragraph.card_event.field_paragraph_location.yml +++ /dev/null @@ -1,37 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_location - - paragraphs.paragraphs_type.card_event - module: - - address -id: paragraph.card_event.field_paragraph_location -field_name: field_paragraph_location -entity_type: paragraph -bundle: card_event -label: Location -description: '' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: - available_countries: - AU: AU - langcode_override: '' - field_overrides: - givenName: - override: hidden - additionalName: - override: hidden - familyName: - override: hidden - organization: - override: hidden - sortingCode: - override: hidden - dependentLocality: - override: hidden - fields: { } -field_type: address diff --git a/config/install/field.field.paragraph.card_event.field_paragraph_media.yml b/config/install/field.field.paragraph.card_event.field_paragraph_media.yml deleted file mode 100644 index 864c820d..00000000 --- a/config/install/field.field.paragraph.card_event.field_paragraph_media.yml +++ /dev/null @@ -1,27 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_media - - media.type.image - - paragraphs.paragraphs_type.card_event -id: paragraph.card_event.field_paragraph_media -field_name: field_paragraph_media -entity_type: paragraph -bundle: card_event -label: Media -description: '' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: - handler: 'default:media' - handler_settings: - target_bundles: - image: image - sort: - field: _none - auto_create: false - auto_create_bundle: '' -field_type: entity_reference diff --git a/config/install/field.field.paragraph.card_event.field_paragraph_status.yml b/config/install/field.field.paragraph.card_event.field_paragraph_status.yml deleted file mode 100644 index 95c393f2..00000000 --- a/config/install/field.field.paragraph.card_event.field_paragraph_status.yml +++ /dev/null @@ -1,18 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_status - - paragraphs.paragraphs_type.card_event -id: paragraph.card_event.field_paragraph_status -field_name: field_paragraph_status -entity_type: paragraph -bundle: card_event -label: Status -description: 'Use Status to display event frequency. Displays under the title on the Event Cards. Content limited to 44 characters.' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: string diff --git a/config/install/field.field.paragraph.card_event.field_paragraph_summary.yml b/config/install/field.field.paragraph.card_event.field_paragraph_summary.yml deleted file mode 100644 index 3baff82a..00000000 --- a/config/install/field.field.paragraph.card_event.field_paragraph_summary.yml +++ /dev/null @@ -1,18 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_summary - - paragraphs.paragraphs_type.card_event -id: paragraph.card_event.field_paragraph_summary -field_name: field_paragraph_summary -entity_type: paragraph -bundle: card_event -label: Summary -description: '' -required: false -translatable: true -default_value: { } -default_value_callback: '' -settings: { } -field_type: string_long diff --git a/config/install/field.field.paragraph.card_event.field_paragraph_title.yml b/config/install/field.field.paragraph.card_event.field_paragraph_title.yml deleted file mode 100644 index e3fff516..00000000 --- a/config/install/field.field.paragraph.card_event.field_paragraph_title.yml +++ /dev/null @@ -1,18 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_title - - paragraphs.paragraphs_type.card_event -id: paragraph.card_event.field_paragraph_title -field_name: field_paragraph_title -entity_type: paragraph -bundle: card_event -label: Title -description: '' -required: true -translatable: true -default_value: { } -default_value_callback: '' -settings: { } -field_type: string diff --git a/config/install/field.field.paragraph.card_event.field_paragraph_topic.yml b/config/install/field.field.paragraph.card_event.field_paragraph_topic.yml deleted file mode 100644 index 7cb8d7f2..00000000 --- a/config/install/field.field.paragraph.card_event.field_paragraph_topic.yml +++ /dev/null @@ -1,28 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_topic - - paragraphs.paragraphs_type.card_event - - taxonomy.vocabulary.topic -id: paragraph.card_event.field_paragraph_topic -field_name: field_paragraph_topic -entity_type: paragraph -bundle: card_event -label: Topic -description: '' -required: false -translatable: true -default_value: { } -default_value_callback: '' -settings: - handler: 'default:taxonomy_term' - handler_settings: - target_bundles: - topic: topic - sort: - field: name - direction: asc - auto_create: false - auto_create_bundle: '' -field_type: entity_reference diff --git a/config/install/field.storage.paragraph.field_paragraph_status.yml b/config/install/field.storage.paragraph.field_paragraph_status.yml deleted file mode 100644 index 64c4e8b0..00000000 --- a/config/install/field.storage.paragraph.field_paragraph_status.yml +++ /dev/null @@ -1,20 +0,0 @@ -langcode: en -status: true -dependencies: - module: - - paragraphs -id: paragraph.field_paragraph_status -field_name: field_paragraph_status -entity_type: paragraph -type: string -settings: - max_length: 44 - is_ascii: false - case_sensitive: false -module: core -locked: false -cardinality: 1 -translatable: true -indexes: { } -persist_with_no_fields: false -custom_storage: false diff --git a/config/install/paragraphs.paragraphs_type.card_event.yml b/config/install/paragraphs.paragraphs_type.card_event.yml deleted file mode 100644 index a6f33d34..00000000 --- a/config/install/paragraphs.paragraphs_type.card_event.yml +++ /dev/null @@ -1,8 +0,0 @@ -langcode: en -status: true -dependencies: { } -id: card_event -label: 'Card event' -icon_uuid: null -description: '' -behavior_plugins: { } diff --git a/config/optional/jsonapi_extras.jsonapi_resource_config.paragraph--card_event.yml b/config/optional/jsonapi_extras.jsonapi_resource_config.paragraph--card_event.yml deleted file mode 100644 index 12eee18f..00000000 --- a/config/optional/jsonapi_extras.jsonapi_resource_config.paragraph--card_event.yml +++ /dev/null @@ -1,212 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - paragraphs.paragraphs_type.card_event -id: paragraph--card_event -disabled: false -path: paragraph/card_event -resourceType: paragraph--card_event -resourceFields: - id: - fieldName: id - publicName: id - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - uuid: - fieldName: uuid - publicName: uuid - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - revision_id: - fieldName: revision_id - publicName: revision_id - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - type: - fieldName: type - publicName: entity_type - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - langcode: - fieldName: langcode - publicName: langcode - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - uid: - fieldName: uid - publicName: uid - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - status: - fieldName: status - publicName: status - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - created: - fieldName: created - publicName: created - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - revision_uid: - fieldName: revision_uid - publicName: revision_uid - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - parent_id: - fieldName: parent_id - publicName: parent_id - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - parent_type: - fieldName: parent_type - publicName: parent_type - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - parent_field_name: - fieldName: parent_field_name - publicName: parent_field_name - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - behavior_settings: - fieldName: behavior_settings - publicName: behavior_settings - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - default_langcode: - fieldName: default_langcode - publicName: default_langcode - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - revision_default: - fieldName: revision_default - publicName: revision_default - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - revision_translation_affected: - fieldName: revision_translation_affected - publicName: revision_translation_affected - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - moderation_state: - fieldName: moderation_state - publicName: moderation_state - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_cta: - fieldName: field_paragraph_cta - publicName: field_paragraph_cta - enhancer: - id: link_enhancer - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_date: - fieldName: field_paragraph_date - publicName: field_paragraph_date - enhancer: - id: date_time_from_string - settings: - dateTimeFormat: 'Y-m-d\TH:i:sP' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_date_range: - fieldName: field_paragraph_date_range - publicName: field_paragraph_date_range - enhancer: - id: date_time_from_string - settings: - dateTimeFormat: 'Y-m-d\TH:i:sP' - disabled: false - field_paragraph_location: - fieldName: field_paragraph_location - publicName: field_paragraph_location - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_media: - fieldName: field_paragraph_media - publicName: field_paragraph_media - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_summary: - fieldName: field_paragraph_summary - publicName: field_paragraph_summary - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_title: - fieldName: field_paragraph_title - publicName: field_paragraph_title - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_topic: - fieldName: field_paragraph_topic - publicName: field_paragraph_topic - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' diff --git a/tide_landing_page.install b/tide_landing_page.install index dc802291..abb3d3fe 100644 --- a/tide_landing_page.install +++ b/tide_landing_page.install @@ -2531,11 +2531,15 @@ function tide_landing_page_update_8048() { * Remove depricated paragraph news_listing. */ function tide_landing_page_update_8049() { + $pids = [ + 'news_listing', + 'card_event', + ]; // Clear the db. $ids = \Drupal::entityQuery('paragraph')->execute(); foreach ($ids as $id) { $paragraph = Paragraph::load($id); - if ($paragraph instanceof ParagraphInterface && $paragraph->bundle() == 'news_listing') { + if ($paragraph instanceof ParagraphInterface && in_array($paragraph->bundle(), $pids)) { $paragraph->delete(); } } @@ -2547,6 +2551,20 @@ function tide_landing_page_update_8049() { 'field.field.paragraph.news_listing.field_paragraph_title', 'field.field.paragraph.news_listing.field_paragraph_topic', 'paragraphs.paragraphs_type.news_listing', + 'core.entity_form_display.paragraph.card_event.default', + 'core.entity_view_display.paragraph.card_event.default', + 'field.field.paragraph.card_event.field_paragraph_topic', + 'field.field.paragraph.card_event.field_paragraph_cta', + 'field.field.paragraph.card_event.field_paragraph_date', + 'field.field.paragraph.card_event.field_paragraph_date_range', + 'field.field.paragraph.card_event.field_paragraph_location', + 'field.field.paragraph.card_event.field_paragraph_media', + 'field.field.paragraph.card_event.field_paragraph_status', + 'field.field.paragraph.card_event.field_paragraph_summary', + 'field.field.paragraph.card_event.field_paragraph_title', + 'jsonapi_extras.jsonapi_resource_config.paragraph--card_event', + 'paragraphs.paragraphs_type.card_event', + 'field.storage.paragraph.field_paragraph_status', ]; foreach ($config_lists as $config) { $config = \Drupal::configFactory()->getEditable($config); @@ -2561,18 +2579,24 @@ function tide_landing_page_update_8049() { * Removed news_listing option from the landing_page widget. */ function tide_landing_page_update_8050() { + $pids = [ + 'news_listing', + 'card_event', + ]; $field = FieldConfig::loadByName('node', 'landing_page', 'field_landing_page_component'); if ($field) { $handler_settings = $field->getSetting('handler_settings'); if (isset($handler_settings['target_bundles'])) { - if (isset($handler_settings['target_bundles']['news_listing'])) { - unset($handler_settings['target_bundles']['news_listing']); - } - if (isset($handler_settings['target_bundles_drag_drop']['news_listing'])) { - unset($handler_settings['target_bundles_drag_drop']['news_listing']); + foreach ($pids as $pid) { + if (isset($handler_settings['target_bundles'][$pid])) { + unset($handler_settings['target_bundles'][$pid]); + } + if (isset($handler_settings['target_bundles_drag_drop'][$pid])) { + unset($handler_settings['target_bundles_drag_drop'][$pid]); + } + $field->setSetting('handler_settings', $handler_settings); + $field->save(); } - $field->setSetting('handler_settings', $handler_settings); - $field->save(); } } } From e95bb65aafeccc29bf868fafac1e499eb6b1f1ad Mon Sep 17 00:00:00 2001 From: Md Nadim Hossain Date: Mon, 6 Mar 2023 16:29:54 +1100 Subject: [PATCH 3/8] Removed card event references. --- ...ode.landing_page.field_landing_page_component.yml | 5 ----- ....node.landing_page.field_landing_page_contact.yml | 3 --- ...d.node.landing_page.field_landing_page_header.yml | 3 --- ...e.landing_page.field_landing_page_hero_banner.yml | 3 --- ...ield.field.node.landing_page.field_whats_next.yml | 3 --- ...paragraph.card_carousel.field_paragraph_items.yml | 5 ----- ...agraph.card_keydates.field_paragraph_keydates.yml | 3 --- ...d.paragraph.contact_us.field_paragraph_phones.yml | 3 --- ...graph.contact_us.field_paragraph_social_media.yml | 3 --- ....latest_events.field_paragraph_cta_card_event.yml | 3 --- ...ragraph.statistics_grid.field_statistic_block.yml | 3 --- tide_landing_page.info.yml | 12 ------------ 12 files changed, 49 deletions(-) diff --git a/config/install/field.field.node.landing_page.field_landing_page_component.yml b/config/install/field.field.node.landing_page.field_landing_page_component.yml index 27e63682..de9b3cf0 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_component.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_component.yml @@ -8,7 +8,6 @@ dependencies: - paragraphs.paragraphs_type.basic_text - paragraphs.paragraphs_type.call_to_action - paragraphs.paragraphs_type.card_carousel - - paragraphs.paragraphs_type.card_event - paragraphs.paragraphs_type.card_event_auto - paragraphs.paragraphs_type.card_keydates - paragraphs.paragraphs_type.card_promotion @@ -53,7 +52,6 @@ settings: call_to_action: call_to_action latest_events: latest_events data_table: data_table - card_event: card_event card_event_auto: card_event_auto statistics_grid: statistics_grid target_bundles_drag_drop: @@ -66,9 +64,6 @@ settings: accordion: enabled: true weight: -31 - card_event: - enabled: true - weight: -28 card_promotion: enabled: false weight: -27 diff --git a/config/install/field.field.node.landing_page.field_landing_page_contact.yml b/config/install/field.field.node.landing_page.field_landing_page_contact.yml index 7006ceb3..6b3df525 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_contact.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_contact.yml @@ -39,9 +39,6 @@ settings: basic_text: weight: 24 enabled: false - card_event: - weight: 25 - enabled: false card_keydates: weight: 26 enabled: false diff --git a/config/install/field.field.node.landing_page.field_landing_page_header.yml b/config/install/field.field.node.landing_page.field_landing_page_header.yml index a8205117..076d9de1 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_header.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_header.yml @@ -47,9 +47,6 @@ settings: call_to_action: weight: 30 enabled: false - card_event: - weight: 31 - enabled: false card_keydates: weight: 32 enabled: false diff --git a/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml b/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml index 3f7bbec0..15b767ed 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml @@ -48,9 +48,6 @@ settings: card_carousel: weight: 42 enabled: false - card_event: - weight: 43 - enabled: false card_event_auto: weight: 44 enabled: false diff --git a/config/install/field.field.node.landing_page.field_whats_next.yml b/config/install/field.field.node.landing_page.field_whats_next.yml index 170b45c7..a08e4b2b 100644 --- a/config/install/field.field.node.landing_page.field_whats_next.yml +++ b/config/install/field.field.node.landing_page.field_whats_next.yml @@ -30,9 +30,6 @@ settings: links: enabled: true weight: 8 - card_event: - weight: 8 - enabled: false card_promotion: weight: 9 enabled: false diff --git a/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml b/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml index 5c1d5b08..f0a43701 100644 --- a/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml +++ b/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml @@ -4,7 +4,6 @@ dependencies: config: - field.storage.paragraph.field_paragraph_items - paragraphs.paragraphs_type.card_carousel - - paragraphs.paragraphs_type.card_event - paragraphs.paragraphs_type.card_event_auto - paragraphs.paragraphs_type.card_keydates - paragraphs.paragraphs_type.card_promotion @@ -26,7 +25,6 @@ settings: handler_settings: negate: 0 target_bundles: - card_event: card_event card_event_auto: card_event_auto card_keydates: card_keydates card_promotion: card_promotion @@ -53,9 +51,6 @@ settings: card_carousel: weight: -55 enabled: false - card_event: - enabled: true - weight: -54 card_event_auto: enabled: true weight: -53 diff --git a/config/install/field.field.paragraph.card_keydates.field_paragraph_keydates.yml b/config/install/field.field.paragraph.card_keydates.field_paragraph_keydates.yml index 3f80d08c..b28837a9 100644 --- a/config/install/field.field.paragraph.card_keydates.field_paragraph_keydates.yml +++ b/config/install/field.field.paragraph.card_keydates.field_paragraph_keydates.yml @@ -33,9 +33,6 @@ settings: basic_text: weight: 16 enabled: false - card_event: - weight: 17 - enabled: false card_promotion: weight: 22 enabled: false diff --git a/config/install/field.field.paragraph.contact_us.field_paragraph_phones.yml b/config/install/field.field.paragraph.contact_us.field_paragraph_phones.yml index 59412583..dcf94df4 100644 --- a/config/install/field.field.paragraph.contact_us.field_paragraph_phones.yml +++ b/config/install/field.field.paragraph.contact_us.field_paragraph_phones.yml @@ -39,9 +39,6 @@ settings: basic_text: weight: 24 enabled: false - card_event: - weight: 25 - enabled: false card_keydates: weight: 26 enabled: false diff --git a/config/install/field.field.paragraph.contact_us.field_paragraph_social_media.yml b/config/install/field.field.paragraph.contact_us.field_paragraph_social_media.yml index 4eb37cb3..c38248dd 100644 --- a/config/install/field.field.paragraph.contact_us.field_paragraph_social_media.yml +++ b/config/install/field.field.paragraph.contact_us.field_paragraph_social_media.yml @@ -39,9 +39,6 @@ settings: basic_text: weight: 24 enabled: false - card_event: - weight: 25 - enabled: false card_keydates: weight: 26 enabled: false diff --git a/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml b/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml index 2318977e..4d330530 100644 --- a/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml +++ b/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml @@ -45,9 +45,6 @@ settings: call_to_action_image: weight: 35 enabled: false - card_event: - weight: 36 - enabled: false card_keydates: weight: 37 enabled: false diff --git a/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml b/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml index 5f66e71c..2bfc276d 100644 --- a/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml +++ b/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml @@ -48,9 +48,6 @@ settings: card_carousel: weight: 85 enabled: false - card_event: - weight: 86 - enabled: false card_event_auto: weight: 87 enabled: false diff --git a/tide_landing_page.info.yml b/tide_landing_page.info.yml index 23fdb25e..f28ed67c 100644 --- a/tide_landing_page.info.yml +++ b/tide_landing_page.info.yml @@ -34,7 +34,6 @@ config_devel: - core.entity_form_display.paragraph.banner.default - core.entity_form_display.paragraph.basic_text.default - core.entity_form_display.paragraph.call_to_action.default - - core.entity_form_display.paragraph.card_event.default - core.entity_form_display.paragraph.card_event_auto.default - core.entity_form_display.paragraph.card_keydates.default - core.entity_form_display.paragraph.card_navigation.default @@ -61,7 +60,6 @@ config_devel: - core.entity_view_display.paragraph.basic_text.default - core.entity_view_display.paragraph.call_to_action.default - core.entity_view_display.paragraph.call_to_action.preview - - core.entity_view_display.paragraph.card_event.default - core.entity_view_display.paragraph.card_event_auto.default - core.entity_view_display.paragraph.card_keydates.default - core.entity_view_display.paragraph.card_navigation.default @@ -129,14 +127,6 @@ config_devel: - field.field.paragraph.call_to_action.field_paragraph_title - field.field.paragraph.card_event_auto.field_paragraph_cta_text - field.field.paragraph.card_event_auto.field_paragraph_reference - - field.field.paragraph.card_event.field_paragraph_cta - - field.field.paragraph.card_event.field_paragraph_date - - field.field.paragraph.card_event.field_paragraph_date_range - - field.field.paragraph.card_event.field_paragraph_location - - field.field.paragraph.card_event.field_paragraph_media - - field.field.paragraph.card_event.field_paragraph_topic - - field.field.paragraph.card_event.field_paragraph_summary - - field.field.paragraph.card_event.field_paragraph_title - field.field.paragraph.card_keydates.field_paragraph_cta - field.field.paragraph.card_keydates.field_paragraph_keydates - field.field.paragraph.card_navigation.field_paragraph_link @@ -265,7 +255,6 @@ config_devel: - paragraphs.paragraphs_type.banner - paragraphs.paragraphs_type.basic_text - paragraphs.paragraphs_type.call_to_action - - paragraphs.paragraphs_type.card_event - paragraphs.paragraphs_type.card_keydates - paragraphs.paragraphs_type.card_event_auto - paragraphs.paragraphs_type.card_navigation @@ -299,7 +288,6 @@ config_devel: - jsonapi_extras.jsonapi_resource_config.block_content--media_gallery - jsonapi_extras.jsonapi_resource_config.paragraph--banner - jsonapi_extras.jsonapi_resource_config.paragraph--call_to_action - - jsonapi_extras.jsonapi_resource_config.paragraph--card_event - jsonapi_extras.jsonapi_resource_config.paragraph--card_keydates - jsonapi_extras.jsonapi_resource_config.paragraph--card_navigation - jsonapi_extras.jsonapi_resource_config.paragraph--card_navigation_featured From b90e8976998c44dfe30a7d2bbf9bb2c9bfa09821 Mon Sep 17 00:00:00 2001 From: Md Nadim Hossain Date: Mon, 6 Mar 2023 17:11:11 +1100 Subject: [PATCH 4/8] Removed card event auto component. --- ...play.paragraph.card_event_auto.default.yml | 41 ------------------- ...play.paragraph.card_event_auto.default.yml | 29 ------------- ...ding_page.field_landing_page_component.yml | 5 --- ...ng_page.field_landing_page_hero_banner.yml | 3 -- ...ph.card_carousel.field_paragraph_items.yml | 5 --- ...rd_event_auto.field_paragraph_cta_text.yml | 18 -------- ...d_event_auto.field_paragraph_reference.yml | 27 ------------ ....statistics_grid.field_statistic_block.yml | 3 -- ...graphs.paragraphs_type.card_event_auto.yml | 8 ---- tide_landing_page.info.yml | 5 --- tide_landing_page.install | 7 ++++ 11 files changed, 7 insertions(+), 144 deletions(-) delete mode 100644 config/install/core.entity_form_display.paragraph.card_event_auto.default.yml delete mode 100644 config/install/core.entity_view_display.paragraph.card_event_auto.default.yml delete mode 100644 config/install/field.field.paragraph.card_event_auto.field_paragraph_cta_text.yml delete mode 100644 config/install/field.field.paragraph.card_event_auto.field_paragraph_reference.yml delete mode 100644 config/install/paragraphs.paragraphs_type.card_event_auto.yml diff --git a/config/install/core.entity_form_display.paragraph.card_event_auto.default.yml b/config/install/core.entity_form_display.paragraph.card_event_auto.default.yml deleted file mode 100644 index fc92aaef..00000000 --- a/config/install/core.entity_form_display.paragraph.card_event_auto.default.yml +++ /dev/null @@ -1,41 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.field.paragraph.card_event_auto.field_paragraph_cta_text - - field.field.paragraph.card_event_auto.field_paragraph_reference - - paragraphs.paragraphs_type.card_event_auto - module: - - content_moderation -id: paragraph.card_event_auto.default -targetEntityType: paragraph -bundle: card_event_auto -mode: default -content: - field_paragraph_cta_text: - weight: 101 - settings: - size: 60 - placeholder: '' - third_party_settings: { } - type: string_textfield - region: content - field_paragraph_reference: - weight: 102 - settings: - match_operator: CONTAINS - size: 60 - placeholder: '' - third_party_settings: { } - type: entity_reference_autocomplete - region: content - moderation_state: - type: moderation_state_default - weight: 100 - settings: { } - region: content - third_party_settings: { } -hidden: - created: true - status: true - uid: true diff --git a/config/install/core.entity_view_display.paragraph.card_event_auto.default.yml b/config/install/core.entity_view_display.paragraph.card_event_auto.default.yml deleted file mode 100644 index b6e68d3a..00000000 --- a/config/install/core.entity_view_display.paragraph.card_event_auto.default.yml +++ /dev/null @@ -1,29 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.field.paragraph.card_event_auto.field_paragraph_cta_text - - field.field.paragraph.card_event_auto.field_paragraph_reference - - paragraphs.paragraphs_type.card_event_auto -id: paragraph.card_event_auto.default -targetEntityType: paragraph -bundle: card_event_auto -mode: default -content: - field_paragraph_cta_text: - weight: 0 - label: above - settings: - link_to_entity: false - third_party_settings: { } - type: string - region: content - field_paragraph_reference: - weight: 1 - label: above - settings: - link: true - third_party_settings: { } - type: entity_reference_label - region: content -hidden: { } diff --git a/config/install/field.field.node.landing_page.field_landing_page_component.yml b/config/install/field.field.node.landing_page.field_landing_page_component.yml index de9b3cf0..1cfece50 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_component.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_component.yml @@ -8,7 +8,6 @@ dependencies: - paragraphs.paragraphs_type.basic_text - paragraphs.paragraphs_type.call_to_action - paragraphs.paragraphs_type.card_carousel - - paragraphs.paragraphs_type.card_event_auto - paragraphs.paragraphs_type.card_keydates - paragraphs.paragraphs_type.card_promotion - paragraphs.paragraphs_type.card_promotion_auto @@ -52,7 +51,6 @@ settings: call_to_action: call_to_action latest_events: latest_events data_table: data_table - card_event_auto: card_event_auto statistics_grid: statistics_grid target_bundles_drag_drop: banner: @@ -109,9 +107,6 @@ settings: media_gallery: enabled: true weight: -18 - card_event_auto: - enabled: true - weight: -4 latest_events: enabled: true weight: -11 diff --git a/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml b/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml index 15b767ed..61538274 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml @@ -48,9 +48,6 @@ settings: card_carousel: weight: 42 enabled: false - card_event_auto: - weight: 44 - enabled: false card_keydates: weight: 45 enabled: false diff --git a/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml b/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml index f0a43701..3072e188 100644 --- a/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml +++ b/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml @@ -4,7 +4,6 @@ dependencies: config: - field.storage.paragraph.field_paragraph_items - paragraphs.paragraphs_type.card_carousel - - paragraphs.paragraphs_type.card_event_auto - paragraphs.paragraphs_type.card_keydates - paragraphs.paragraphs_type.card_promotion - paragraphs.paragraphs_type.card_promotion_auto @@ -25,7 +24,6 @@ settings: handler_settings: negate: 0 target_bundles: - card_event_auto: card_event_auto card_keydates: card_keydates card_promotion: card_promotion card_promotion_auto: card_promotion_auto @@ -51,9 +49,6 @@ settings: card_carousel: weight: -55 enabled: false - card_event_auto: - enabled: true - weight: -53 card_keydates: enabled: true weight: -52 diff --git a/config/install/field.field.paragraph.card_event_auto.field_paragraph_cta_text.yml b/config/install/field.field.paragraph.card_event_auto.field_paragraph_cta_text.yml deleted file mode 100644 index 48b99de1..00000000 --- a/config/install/field.field.paragraph.card_event_auto.field_paragraph_cta_text.yml +++ /dev/null @@ -1,18 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_cta_text - - paragraphs.paragraphs_type.card_event_auto -id: paragraph.card_event_auto.field_paragraph_cta_text -field_name: field_paragraph_cta_text -entity_type: paragraph -bundle: card_event_auto -label: 'CTA Text' -description: '' -required: false -translatable: true -default_value: { } -default_value_callback: '' -settings: { } -field_type: string diff --git a/config/install/field.field.paragraph.card_event_auto.field_paragraph_reference.yml b/config/install/field.field.paragraph.card_event_auto.field_paragraph_reference.yml deleted file mode 100644 index 050910ee..00000000 --- a/config/install/field.field.paragraph.card_event_auto.field_paragraph_reference.yml +++ /dev/null @@ -1,27 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_reference - - node.type.event - - paragraphs.paragraphs_type.card_event_auto -id: paragraph.card_event_auto.field_paragraph_reference -field_name: field_paragraph_reference -entity_type: paragraph -bundle: card_event_auto -label: 'Referred event' -description: '' -required: true -translatable: true -default_value: { } -default_value_callback: '' -settings: - handler: 'default:node' - handler_settings: - target_bundles: - event: event - sort: - field: _none - auto_create: false - auto_create_bundle: '' -field_type: entity_reference diff --git a/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml b/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml index 2bfc276d..6139f1dd 100644 --- a/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml +++ b/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml @@ -48,9 +48,6 @@ settings: card_carousel: weight: 85 enabled: false - card_event_auto: - weight: 87 - enabled: false card_keydates: weight: 88 enabled: false diff --git a/config/install/paragraphs.paragraphs_type.card_event_auto.yml b/config/install/paragraphs.paragraphs_type.card_event_auto.yml deleted file mode 100644 index 66ccbf83..00000000 --- a/config/install/paragraphs.paragraphs_type.card_event_auto.yml +++ /dev/null @@ -1,8 +0,0 @@ -langcode: en -status: true -dependencies: { } -id: card_event_auto -label: 'Card event automated' -icon_uuid: null -description: '' -behavior_plugins: { } diff --git a/tide_landing_page.info.yml b/tide_landing_page.info.yml index f28ed67c..22d700b5 100644 --- a/tide_landing_page.info.yml +++ b/tide_landing_page.info.yml @@ -34,7 +34,6 @@ config_devel: - core.entity_form_display.paragraph.banner.default - core.entity_form_display.paragraph.basic_text.default - core.entity_form_display.paragraph.call_to_action.default - - core.entity_form_display.paragraph.card_event_auto.default - core.entity_form_display.paragraph.card_keydates.default - core.entity_form_display.paragraph.card_navigation.default - core.entity_form_display.paragraph.card_navigation_auto.default @@ -60,7 +59,6 @@ config_devel: - core.entity_view_display.paragraph.basic_text.default - core.entity_view_display.paragraph.call_to_action.default - core.entity_view_display.paragraph.call_to_action.preview - - core.entity_view_display.paragraph.card_event_auto.default - core.entity_view_display.paragraph.card_keydates.default - core.entity_view_display.paragraph.card_navigation.default - core.entity_view_display.paragraph.card_navigation_auto.default @@ -125,8 +123,6 @@ config_devel: - field.field.paragraph.call_to_action.field_paragraph_cta_style - field.field.paragraph.call_to_action.field_paragraph_media - field.field.paragraph.call_to_action.field_paragraph_title - - field.field.paragraph.card_event_auto.field_paragraph_cta_text - - field.field.paragraph.card_event_auto.field_paragraph_reference - field.field.paragraph.card_keydates.field_paragraph_cta - field.field.paragraph.card_keydates.field_paragraph_keydates - field.field.paragraph.card_navigation.field_paragraph_link @@ -256,7 +252,6 @@ config_devel: - paragraphs.paragraphs_type.basic_text - paragraphs.paragraphs_type.call_to_action - paragraphs.paragraphs_type.card_keydates - - paragraphs.paragraphs_type.card_event_auto - paragraphs.paragraphs_type.card_navigation - paragraphs.paragraphs_type.card_navigation_auto - paragraphs.paragraphs_type.card_navigation_featured diff --git a/tide_landing_page.install b/tide_landing_page.install index abb3d3fe..fe4533e7 100644 --- a/tide_landing_page.install +++ b/tide_landing_page.install @@ -2534,6 +2534,7 @@ function tide_landing_page_update_8049() { $pids = [ 'news_listing', 'card_event', + 'card_event_auto', ]; // Clear the db. $ids = \Drupal::entityQuery('paragraph')->execute(); @@ -2565,6 +2566,11 @@ function tide_landing_page_update_8049() { 'jsonapi_extras.jsonapi_resource_config.paragraph--card_event', 'paragraphs.paragraphs_type.card_event', 'field.storage.paragraph.field_paragraph_status', + 'core.entity_form_display.paragraph.card_event_auto.default', + 'core.entity_view_display.paragraph.card_event_auto.default', + 'field.field.paragraph.card_event_auto.field_paragraph_reference', + 'field.field.paragraph.card_event_auto.field_paragraph_cta_text', + 'paragraphs.paragraphs_type.card_event_auto', ]; foreach ($config_lists as $config) { $config = \Drupal::configFactory()->getEditable($config); @@ -2582,6 +2588,7 @@ function tide_landing_page_update_8050() { $pids = [ 'news_listing', 'card_event', + 'card_event_auto', ]; $field = FieldConfig::loadByName('node', 'landing_page', 'field_landing_page_component'); if ($field) { From f384b81c67cd322790687621026ce5b8e70e6642 Mon Sep 17 00:00:00 2001 From: Md Nadim Hossain Date: Mon, 6 Mar 2023 17:31:04 +1100 Subject: [PATCH 5/8] Removed depricated component card_promotion. --- ...splay.paragraph.card_promotion.default.yml | 90 -------- ...splay.paragraph.card_promotion.default.yml | 88 -------- ...ding_page.field_landing_page_component.yml | 4 - ...anding_page.field_landing_page_contact.yml | 3 - ...landing_page.field_landing_page_header.yml | 3 - ...ng_page.field_landing_page_hero_banner.yml | 3 - ...eld.node.landing_page.field_whats_next.yml | 3 - ...ph.card_carousel.field_paragraph_items.yml | 3 - ...card_keydates.field_paragraph_keydates.yml | 3 - ...aph.card_promotion.field_paragraph_cta.yml | 22 -- ...ph.card_promotion.field_paragraph_date.yml | 20 -- ...ph.card_promotion.field_paragraph_link.yml | 22 -- ...h.card_promotion.field_paragraph_media.yml | 27 --- ...card_promotion.field_paragraph_summary.yml | 18 -- ...h.card_promotion.field_paragraph_title.yml | 18 -- ...h.card_promotion.field_paragraph_topic.yml | 28 --- ...raph.contact_us.field_paragraph_phones.yml | 3 - ...ontact_us.field_paragraph_social_media.yml | 3 - ..._events.field_paragraph_cta_card_event.yml | 3 - ....statistics_grid.field_statistic_block.yml | 3 - ...storage.paragraph.field_paragraph_date.yml | 19 -- ...torage.paragraph.field_paragraph_topic.yml | 19 -- ...agraphs.paragraphs_type.card_promotion.yml | 8 - ...ource_config.paragraph--card_promotion.yml | 204 ------------------ tide_landing_page.info.yml | 12 -- tide_landing_page.install | 13 ++ 26 files changed, 13 insertions(+), 629 deletions(-) delete mode 100644 config/install/core.entity_form_display.paragraph.card_promotion.default.yml delete mode 100644 config/install/core.entity_view_display.paragraph.card_promotion.default.yml delete mode 100644 config/install/field.field.paragraph.card_promotion.field_paragraph_cta.yml delete mode 100644 config/install/field.field.paragraph.card_promotion.field_paragraph_date.yml delete mode 100644 config/install/field.field.paragraph.card_promotion.field_paragraph_link.yml delete mode 100644 config/install/field.field.paragraph.card_promotion.field_paragraph_media.yml delete mode 100644 config/install/field.field.paragraph.card_promotion.field_paragraph_summary.yml delete mode 100644 config/install/field.field.paragraph.card_promotion.field_paragraph_title.yml delete mode 100644 config/install/field.field.paragraph.card_promotion.field_paragraph_topic.yml delete mode 100644 config/install/field.storage.paragraph.field_paragraph_date.yml delete mode 100644 config/install/field.storage.paragraph.field_paragraph_topic.yml delete mode 100644 config/install/paragraphs.paragraphs_type.card_promotion.yml delete mode 100644 config/optional/jsonapi_extras.jsonapi_resource_config.paragraph--card_promotion.yml diff --git a/config/install/core.entity_form_display.paragraph.card_promotion.default.yml b/config/install/core.entity_form_display.paragraph.card_promotion.default.yml deleted file mode 100644 index ae20185e..00000000 --- a/config/install/core.entity_form_display.paragraph.card_promotion.default.yml +++ /dev/null @@ -1,90 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - entity_browser.browser.tide_image_browser - - field.field.paragraph.card_promotion.field_paragraph_cta - - field.field.paragraph.card_promotion.field_paragraph_date - - field.field.paragraph.card_promotion.field_paragraph_link - - field.field.paragraph.card_promotion.field_paragraph_media - - field.field.paragraph.card_promotion.field_paragraph_summary - - field.field.paragraph.card_promotion.field_paragraph_title - - field.field.paragraph.card_promotion.field_paragraph_topic - - paragraphs.paragraphs_type.card_promotion - module: - - datetime - - entity_browser - - link - - maxlength -id: paragraph.card_promotion.default -targetEntityType: paragraph -bundle: card_promotion -mode: default -content: - field_paragraph_date: - weight: 1 - settings: { } - third_party_settings: { } - type: datetime_default - region: content - field_paragraph_link: - weight: 5 - settings: - placeholder_url: '' - placeholder_title: '' - third_party_settings: { } - type: link_default - region: content - field_paragraph_media: - weight: 3 - settings: - entity_browser: tide_image_browser - field_widget_display: rendered_entity - field_widget_edit: true - field_widget_remove: true - open: true - selection_mode: selection_append - field_widget_display_settings: - view_mode: media_browser_preview - third_party_settings: { } - type: entity_browser_entity_reference - region: content - field_paragraph_summary: - type: string_textarea - weight: 4 - settings: - rows: 5 - placeholder: '' - third_party_settings: - maxlength: - maxlength_js: 200 - maxlength_js_label: 'Content limited to @limit characters, remaining: @remaining' - maxlength_js_enforce: false - maxlength_js_truncate_html: false - region: content - field_paragraph_title: - weight: 0 - settings: - size: 60 - placeholder: '' - third_party_settings: - maxlength: - maxlength_js: 150 - maxlength_js_label: 'Content limited to @limit characters, remaining: @remaining' - type: string_textfield - region: content - field_paragraph_topic: - weight: 2 - settings: - match_operator: CONTAINS - size: 60 - placeholder: '' - third_party_settings: { } - type: entity_reference_autocomplete - region: content -hidden: - created: true - field_paragraph_cta: true - moderation_state: true - status: true - uid: true diff --git a/config/install/core.entity_view_display.paragraph.card_promotion.default.yml b/config/install/core.entity_view_display.paragraph.card_promotion.default.yml deleted file mode 100644 index eb69036e..00000000 --- a/config/install/core.entity_view_display.paragraph.card_promotion.default.yml +++ /dev/null @@ -1,88 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.field.paragraph.card_promotion.field_paragraph_cta - - field.field.paragraph.card_promotion.field_paragraph_date - - field.field.paragraph.card_promotion.field_paragraph_link - - field.field.paragraph.card_promotion.field_paragraph_media - - field.field.paragraph.card_promotion.field_paragraph_summary - - field.field.paragraph.card_promotion.field_paragraph_title - - field.field.paragraph.card_promotion.field_paragraph_topic - - paragraphs.paragraphs_type.card_promotion - module: - - datetime - - link - - media - - smart_trim -id: paragraph.card_promotion.default -targetEntityType: paragraph -bundle: card_promotion -mode: default -content: - field_paragraph_date: - weight: 4 - label: hidden - settings: - format_type: medium - timezone_override: '' - third_party_settings: { } - type: datetime_default - region: content - field_paragraph_link: - weight: 5 - label: above - settings: - trim_length: 80 - url_only: false - url_plain: false - rel: '' - target: '' - third_party_settings: { } - type: link - region: content - field_paragraph_media: - weight: 2 - label: hidden - settings: - image_style: '' - image_link: '' - third_party_settings: { } - type: media_thumbnail - region: content - field_paragraph_summary: - type: basic_string - weight: 1 - label: hidden - settings: { } - third_party_settings: { } - region: content - field_paragraph_title: - weight: 0 - label: hidden - settings: - trim_length: 150 - trim_type: chars - trim_suffix: '' - wrap_class: trimmed - more_text: More - more_class: more-link - trim_options: - text: true - trim_zero: false - wrap_output: false - more_link: false - summary_handler: full - third_party_settings: { } - type: smart_trim - region: content - field_paragraph_topic: - weight: 3 - label: hidden - settings: - link: true - third_party_settings: { } - type: entity_reference_label - region: content -hidden: - field_paragraph_cta: true diff --git a/config/install/field.field.node.landing_page.field_landing_page_component.yml b/config/install/field.field.node.landing_page.field_landing_page_component.yml index 1cfece50..a64092d5 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_component.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_component.yml @@ -9,7 +9,6 @@ dependencies: - paragraphs.paragraphs_type.call_to_action - paragraphs.paragraphs_type.card_carousel - paragraphs.paragraphs_type.card_keydates - - paragraphs.paragraphs_type.card_promotion - paragraphs.paragraphs_type.card_promotion_auto - paragraphs.paragraphs_type.complex_image - paragraphs.paragraphs_type.data_table @@ -62,9 +61,6 @@ settings: accordion: enabled: true weight: -31 - card_promotion: - enabled: false - weight: -27 card_promotion_auto: enabled: false weight: -26 diff --git a/config/install/field.field.node.landing_page.field_landing_page_contact.yml b/config/install/field.field.node.landing_page.field_landing_page_contact.yml index 6b3df525..ab99d7d8 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_contact.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_contact.yml @@ -42,9 +42,6 @@ settings: card_keydates: weight: 26 enabled: false - card_promotion: - weight: 31 - enabled: false card_promotion_auto: weight: 32 enabled: false diff --git a/config/install/field.field.node.landing_page.field_landing_page_header.yml b/config/install/field.field.node.landing_page.field_landing_page_header.yml index 076d9de1..ecb60831 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_header.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_header.yml @@ -50,9 +50,6 @@ settings: card_keydates: weight: 32 enabled: false - card_promotion: - weight: 37 - enabled: false card_promotion_auto: weight: 38 enabled: false diff --git a/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml b/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml index 61538274..e7e6fea8 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml @@ -51,9 +51,6 @@ settings: card_keydates: weight: 45 enabled: false - card_promotion: - weight: 50 - enabled: false card_promotion_auto: weight: 51 enabled: false diff --git a/config/install/field.field.node.landing_page.field_whats_next.yml b/config/install/field.field.node.landing_page.field_whats_next.yml index a08e4b2b..837c3399 100644 --- a/config/install/field.field.node.landing_page.field_whats_next.yml +++ b/config/install/field.field.node.landing_page.field_whats_next.yml @@ -30,9 +30,6 @@ settings: links: enabled: true weight: 8 - card_promotion: - weight: 9 - enabled: false key_journeys: weight: 10 enabled: false diff --git a/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml b/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml index 3072e188..58eaee12 100644 --- a/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml +++ b/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml @@ -52,9 +52,6 @@ settings: card_keydates: enabled: true weight: -52 - card_promotion: - enabled: true - weight: -47 card_promotion_auto: enabled: true weight: -46 diff --git a/config/install/field.field.paragraph.card_keydates.field_paragraph_keydates.yml b/config/install/field.field.paragraph.card_keydates.field_paragraph_keydates.yml index b28837a9..4c1950e7 100644 --- a/config/install/field.field.paragraph.card_keydates.field_paragraph_keydates.yml +++ b/config/install/field.field.paragraph.card_keydates.field_paragraph_keydates.yml @@ -33,9 +33,6 @@ settings: basic_text: weight: 16 enabled: false - card_promotion: - weight: 22 - enabled: false keydates: enabled: true weight: 23 diff --git a/config/install/field.field.paragraph.card_promotion.field_paragraph_cta.yml b/config/install/field.field.paragraph.card_promotion.field_paragraph_cta.yml deleted file mode 100644 index f4e19723..00000000 --- a/config/install/field.field.paragraph.card_promotion.field_paragraph_cta.yml +++ /dev/null @@ -1,22 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_cta - - paragraphs.paragraphs_type.card_promotion - module: - - link -id: paragraph.card_promotion.field_paragraph_cta -field_name: field_paragraph_cta -entity_type: paragraph -bundle: card_promotion -label: CTA -description: '' -required: false -translatable: true -default_value: { } -default_value_callback: '' -settings: - link_type: 17 - title: 2 -field_type: link diff --git a/config/install/field.field.paragraph.card_promotion.field_paragraph_date.yml b/config/install/field.field.paragraph.card_promotion.field_paragraph_date.yml deleted file mode 100644 index 7b333157..00000000 --- a/config/install/field.field.paragraph.card_promotion.field_paragraph_date.yml +++ /dev/null @@ -1,20 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_date - - paragraphs.paragraphs_type.card_promotion - module: - - datetime -id: paragraph.card_promotion.field_paragraph_date -field_name: field_paragraph_date -entity_type: paragraph -bundle: card_promotion -label: 'Date posted' -description: '' -required: false -translatable: true -default_value: { } -default_value_callback: '' -settings: { } -field_type: datetime diff --git a/config/install/field.field.paragraph.card_promotion.field_paragraph_link.yml b/config/install/field.field.paragraph.card_promotion.field_paragraph_link.yml deleted file mode 100644 index 48a63251..00000000 --- a/config/install/field.field.paragraph.card_promotion.field_paragraph_link.yml +++ /dev/null @@ -1,22 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_link - - paragraphs.paragraphs_type.card_promotion - module: - - link -id: paragraph.card_promotion.field_paragraph_link -field_name: field_paragraph_link -entity_type: paragraph -bundle: card_promotion -label: Link -description: '' -required: true -translatable: true -default_value: { } -default_value_callback: '' -settings: - link_type: 17 - title: 1 -field_type: link diff --git a/config/install/field.field.paragraph.card_promotion.field_paragraph_media.yml b/config/install/field.field.paragraph.card_promotion.field_paragraph_media.yml deleted file mode 100644 index f0f5ade8..00000000 --- a/config/install/field.field.paragraph.card_promotion.field_paragraph_media.yml +++ /dev/null @@ -1,27 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_media - - media.type.image - - paragraphs.paragraphs_type.card_promotion -id: paragraph.card_promotion.field_paragraph_media -field_name: field_paragraph_media -entity_type: paragraph -bundle: card_promotion -label: Image -description: '' -required: false -translatable: true -default_value: { } -default_value_callback: '' -settings: - handler: 'default:media' - handler_settings: - target_bundles: - image: image - sort: - field: _none - auto_create: false - auto_create_bundle: '' -field_type: entity_reference diff --git a/config/install/field.field.paragraph.card_promotion.field_paragraph_summary.yml b/config/install/field.field.paragraph.card_promotion.field_paragraph_summary.yml deleted file mode 100644 index e976c65d..00000000 --- a/config/install/field.field.paragraph.card_promotion.field_paragraph_summary.yml +++ /dev/null @@ -1,18 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_summary - - paragraphs.paragraphs_type.card_promotion -id: paragraph.card_promotion.field_paragraph_summary -field_name: field_paragraph_summary -entity_type: paragraph -bundle: card_promotion -label: Summary -description: '' -required: true -translatable: true -default_value: { } -default_value_callback: '' -settings: { } -field_type: string_long diff --git a/config/install/field.field.paragraph.card_promotion.field_paragraph_title.yml b/config/install/field.field.paragraph.card_promotion.field_paragraph_title.yml deleted file mode 100644 index 3e333a39..00000000 --- a/config/install/field.field.paragraph.card_promotion.field_paragraph_title.yml +++ /dev/null @@ -1,18 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_title - - paragraphs.paragraphs_type.card_promotion -id: paragraph.card_promotion.field_paragraph_title -field_name: field_paragraph_title -entity_type: paragraph -bundle: card_promotion -label: Title -description: '' -required: true -translatable: true -default_value: { } -default_value_callback: '' -settings: { } -field_type: string diff --git a/config/install/field.field.paragraph.card_promotion.field_paragraph_topic.yml b/config/install/field.field.paragraph.card_promotion.field_paragraph_topic.yml deleted file mode 100644 index c324ef9d..00000000 --- a/config/install/field.field.paragraph.card_promotion.field_paragraph_topic.yml +++ /dev/null @@ -1,28 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_topic - - paragraphs.paragraphs_type.card_promotion - - taxonomy.vocabulary.topic -id: paragraph.card_promotion.field_paragraph_topic -field_name: field_paragraph_topic -entity_type: paragraph -bundle: card_promotion -label: Topic -description: '' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: - handler: 'default:taxonomy_term' - handler_settings: - target_bundles: - topic: topic - sort: - field: name - direction: asc - auto_create: false - auto_create_bundle: '' -field_type: entity_reference diff --git a/config/install/field.field.paragraph.contact_us.field_paragraph_phones.yml b/config/install/field.field.paragraph.contact_us.field_paragraph_phones.yml index dcf94df4..06e3be99 100644 --- a/config/install/field.field.paragraph.contact_us.field_paragraph_phones.yml +++ b/config/install/field.field.paragraph.contact_us.field_paragraph_phones.yml @@ -42,9 +42,6 @@ settings: card_keydates: weight: 26 enabled: false - card_promotion: - weight: 31 - enabled: false card_promotion_auto: weight: 32 enabled: false diff --git a/config/install/field.field.paragraph.contact_us.field_paragraph_social_media.yml b/config/install/field.field.paragraph.contact_us.field_paragraph_social_media.yml index c38248dd..e5187234 100644 --- a/config/install/field.field.paragraph.contact_us.field_paragraph_social_media.yml +++ b/config/install/field.field.paragraph.contact_us.field_paragraph_social_media.yml @@ -42,9 +42,6 @@ settings: card_keydates: weight: 26 enabled: false - card_promotion: - weight: 31 - enabled: false card_promotion_auto: weight: 32 enabled: false diff --git a/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml b/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml index 4d330530..2ee35e62 100644 --- a/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml +++ b/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml @@ -48,9 +48,6 @@ settings: card_keydates: weight: 37 enabled: false - card_promotion: - weight: 42 - enabled: false card_promotion_auto: weight: 43 enabled: false diff --git a/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml b/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml index 6139f1dd..0f7ad0d1 100644 --- a/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml +++ b/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml @@ -51,9 +51,6 @@ settings: card_keydates: weight: 88 enabled: false - card_promotion: - weight: 89 - enabled: false card_promotion_auto: weight: 90 enabled: false diff --git a/config/install/field.storage.paragraph.field_paragraph_date.yml b/config/install/field.storage.paragraph.field_paragraph_date.yml deleted file mode 100644 index c31168ed..00000000 --- a/config/install/field.storage.paragraph.field_paragraph_date.yml +++ /dev/null @@ -1,19 +0,0 @@ -langcode: en -status: true -dependencies: - module: - - datetime - - paragraphs -id: paragraph.field_paragraph_date -field_name: field_paragraph_date -entity_type: paragraph -type: datetime -settings: - datetime_type: datetime -module: datetime -locked: false -cardinality: 1 -translatable: true -indexes: { } -persist_with_no_fields: false -custom_storage: false diff --git a/config/install/field.storage.paragraph.field_paragraph_topic.yml b/config/install/field.storage.paragraph.field_paragraph_topic.yml deleted file mode 100644 index 5bdaa060..00000000 --- a/config/install/field.storage.paragraph.field_paragraph_topic.yml +++ /dev/null @@ -1,19 +0,0 @@ -langcode: en -status: true -dependencies: - module: - - paragraphs - - taxonomy -id: paragraph.field_paragraph_topic -field_name: field_paragraph_topic -entity_type: paragraph -type: entity_reference -settings: - target_type: taxonomy_term -module: core -locked: false -cardinality: -1 -translatable: true -indexes: { } -persist_with_no_fields: false -custom_storage: false diff --git a/config/install/paragraphs.paragraphs_type.card_promotion.yml b/config/install/paragraphs.paragraphs_type.card_promotion.yml deleted file mode 100644 index aa282743..00000000 --- a/config/install/paragraphs.paragraphs_type.card_promotion.yml +++ /dev/null @@ -1,8 +0,0 @@ -langcode: en -status: true -dependencies: { } -id: card_promotion -label: Card promotion -icon_uuid: null -description: '' -behavior_plugins: { } diff --git a/config/optional/jsonapi_extras.jsonapi_resource_config.paragraph--card_promotion.yml b/config/optional/jsonapi_extras.jsonapi_resource_config.paragraph--card_promotion.yml deleted file mode 100644 index 75d6e331..00000000 --- a/config/optional/jsonapi_extras.jsonapi_resource_config.paragraph--card_promotion.yml +++ /dev/null @@ -1,204 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - paragraphs.paragraphs_type.card_promotion -id: paragraph--card_promotion -disabled: false -path: paragraph/card_promotion -resourceType: paragraph--card_promotion -resourceFields: - id: - fieldName: id - publicName: id - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - uuid: - fieldName: uuid - publicName: uuid - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - revision_id: - fieldName: revision_id - publicName: revision_id - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - type: - fieldName: type - publicName: entity_type - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - langcode: - fieldName: langcode - publicName: langcode - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - uid: - fieldName: uid - publicName: uid - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - status: - fieldName: status - publicName: status - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - created: - fieldName: created - publicName: created - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - revision_uid: - fieldName: revision_uid - publicName: revision_uid - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - parent_id: - fieldName: parent_id - publicName: parent_id - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - parent_type: - fieldName: parent_type - publicName: parent_type - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - parent_field_name: - fieldName: parent_field_name - publicName: parent_field_name - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - behavior_settings: - fieldName: behavior_settings - publicName: behavior_settings - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - default_langcode: - fieldName: default_langcode - publicName: default_langcode - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - revision_default: - fieldName: revision_default - publicName: revision_default - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - revision_translation_affected: - fieldName: revision_translation_affected - publicName: revision_translation_affected - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - moderation_state: - fieldName: moderation_state - publicName: moderation_state - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_cta: - fieldName: field_paragraph_cta - publicName: field_paragraph_cta - enhancer: - id: link_enhancer - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_date: - fieldName: field_paragraph_date - publicName: field_paragraph_date - enhancer: - id: date_time_from_string - settings: - dateTimeFormat: 'Y-m-d\TH:i:sP' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_link: - fieldName: field_paragraph_link - publicName: field_paragraph_link - enhancer: - id: link_enhancer - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_media: - fieldName: field_paragraph_media - publicName: field_paragraph_media - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_summary: - fieldName: field_paragraph_summary - publicName: field_paragraph_summary - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_title: - fieldName: field_paragraph_title - publicName: field_paragraph_title - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_topic: - fieldName: field_paragraph_topic - publicName: field_paragraph_topic - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' diff --git a/tide_landing_page.info.yml b/tide_landing_page.info.yml index 22d700b5..c5be0f69 100644 --- a/tide_landing_page.info.yml +++ b/tide_landing_page.info.yml @@ -39,7 +39,6 @@ config_devel: - core.entity_form_display.paragraph.card_navigation_auto.default - core.entity_form_display.paragraph.card_navigation_featured.default - core.entity_form_display.paragraph.card_navigation_featured_auto.default - - core.entity_form_display.paragraph.card_promotion.default - core.entity_form_display.paragraph.card_promotion_auto.default - core.entity_form_display.paragraph.complex_image.default - core.entity_form_display.paragraph.embedded_search_form.default @@ -64,9 +63,7 @@ config_devel: - core.entity_view_display.paragraph.card_navigation_auto.default - core.entity_view_display.paragraph.card_navigation_featured.default - core.entity_view_display.paragraph.card_navigation_featured_auto.default - - core.entity_view_display.paragraph.card_promotion.default - core.entity_view_display.paragraph.card_promotion_auto.default - - core.entity_view_display.paragraph.card_promotion.default - core.entity_view_display.paragraph.complex_image.default - core.entity_view_display.paragraph.embedded_search_form.default - core.entity_view_display.paragraph.form_embed_openforms.default @@ -135,12 +132,6 @@ config_devel: - field.field.paragraph.card_navigation_featured.field_paragraph_title - field.field.paragraph.card_navigation_featured_auto.field_paragraph_reference - field.field.paragraph.card_keydates.field_paragraph_cta - - field.field.paragraph.card_promotion.field_paragraph_cta - - field.field.paragraph.card_promotion.field_paragraph_date - - field.field.paragraph.card_promotion.field_paragraph_media - - field.field.paragraph.card_promotion.field_paragraph_summary - - field.field.paragraph.card_promotion.field_paragraph_title - - field.field.paragraph.card_promotion.field_paragraph_topic - field.field.paragraph.card_promotion_auto.field_paragraph_display_topic.yml - field.field.paragraph.card_promotion_auto.field_paragraph_reference - field.field.paragraph.card_promotion_auto.field_paragraph_cta_text @@ -224,7 +215,6 @@ config_devel: - field.storage.paragraph.field_complex_image_source - field.storage.paragraph.field_complex_image_title - field.storage.paragraph.field_form_link - - field.storage.paragraph.field_paragraph_date - field.storage.paragraph.field_paragraph_freetext - field.storage.paragraph.field_paragraph_location - field.storage.paragraph.field_paragraph_link_text @@ -256,7 +246,6 @@ config_devel: - paragraphs.paragraphs_type.card_navigation_auto - paragraphs.paragraphs_type.card_navigation_featured - paragraphs.paragraphs_type.card_navigation_featured_auto - - paragraphs.paragraphs_type.card_promotion - paragraphs.paragraphs_type.card_promotion_auto - paragraphs.paragraphs_type.complex_image - paragraphs.paragraphs_type.embedded_search_form @@ -286,7 +275,6 @@ config_devel: - jsonapi_extras.jsonapi_resource_config.paragraph--card_keydates - jsonapi_extras.jsonapi_resource_config.paragraph--card_navigation - jsonapi_extras.jsonapi_resource_config.paragraph--card_navigation_featured - - jsonapi_extras.jsonapi_resource_config.paragraph--card_promotion - jsonapi_extras.jsonapi_resource_config.paragraph--form_embed_openforms - jsonapi_extras.jsonapi_resource_config.paragraph-.hero_banner_with_cta - jsonapi_extras.jsonapi_resource_config.paragraph--introduction_banner diff --git a/tide_landing_page.install b/tide_landing_page.install index fe4533e7..73eb5cfa 100644 --- a/tide_landing_page.install +++ b/tide_landing_page.install @@ -2571,6 +2571,19 @@ function tide_landing_page_update_8049() { 'field.field.paragraph.card_event_auto.field_paragraph_reference', 'field.field.paragraph.card_event_auto.field_paragraph_cta_text', 'paragraphs.paragraphs_type.card_event_auto', + 'core.entity_form_display.paragraph.card_promotion.default', + 'core.entity_view_display.paragraph.card_promotion.default', + 'field.field.paragraph.card_promotion.field_paragraph_topic', + 'field.storage.paragraph.field_paragraph_topic', + 'field.field.paragraph.card_promotion.field_paragraph_cta', + 'field.field.paragraph.card_promotion.field_paragraph_date', + 'field.field.paragraph.card_promotion.field_paragraph_link', + 'field.field.paragraph.card_promotion.field_paragraph_media', + 'field.field.paragraph.card_promotion.field_paragraph_summary'. + 'field.field.paragraph.card_promotion.field_paragraph_title', + 'jsonapi_extras.jsonapi_resource_config.paragraph--card_promotion', + 'paragraphs.paragraphs_type.card_promotion', + 'field.storage.paragraph.field_paragraph_date', ]; foreach ($config_lists as $config) { $config = \Drupal::configFactory()->getEditable($config); From c8c6d5725ec8a1d8a98a468621ff4bd9eb7ed6b3 Mon Sep 17 00:00:00 2001 From: Md Nadim Hossain Date: Tue, 7 Mar 2023 12:19:30 +1100 Subject: [PATCH 6/8] Removed depricated component card_promotion_auto. --- ....paragraph.card_promotion_auto.default.yml | 49 ------ ....paragraph.card_promotion_auto.default.yml | 36 ---- ...romotion_auto.field_paragraph_cta_text.yml | 18 -- ...ion_auto.field_paragraph_display_topic.yml | 21 --- ...omotion_auto.field_paragraph_reference.yml | 27 --- ...aragraph.field_paragraph_display_topic.yml | 17 -- ...ge.paragraph.field_paragraph_reference.yml | 19 -- ...hs.paragraphs_type.card_promotion_auto.yml | 8 - ..._config.paragraph--card_promotion_auto.yml | 162 ------------------ tide_landing_page.info.yml | 8 - tide_landing_page.install | 9 + 11 files changed, 9 insertions(+), 365 deletions(-) delete mode 100644 config/install/core.entity_form_display.paragraph.card_promotion_auto.default.yml delete mode 100644 config/install/core.entity_view_display.paragraph.card_promotion_auto.default.yml delete mode 100644 config/install/field.field.paragraph.card_promotion_auto.field_paragraph_cta_text.yml delete mode 100644 config/install/field.field.paragraph.card_promotion_auto.field_paragraph_display_topic.yml delete mode 100644 config/install/field.field.paragraph.card_promotion_auto.field_paragraph_reference.yml delete mode 100644 config/install/field.storage.paragraph.field_paragraph_display_topic.yml delete mode 100644 config/install/field.storage.paragraph.field_paragraph_reference.yml delete mode 100644 config/install/paragraphs.paragraphs_type.card_promotion_auto.yml delete mode 100644 config/optional/jsonapi_extras.jsonapi_resource_config.paragraph--card_promotion_auto.yml diff --git a/config/install/core.entity_form_display.paragraph.card_promotion_auto.default.yml b/config/install/core.entity_form_display.paragraph.card_promotion_auto.default.yml deleted file mode 100644 index 2282876e..00000000 --- a/config/install/core.entity_form_display.paragraph.card_promotion_auto.default.yml +++ /dev/null @@ -1,49 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.field.paragraph.card_promotion_auto.field_paragraph_display_topic - - field.field.paragraph.card_promotion_auto.field_paragraph_cta_text - - field.field.paragraph.card_promotion_auto.field_paragraph_reference - - paragraphs.paragraphs_type.card_promotion_auto - module: - - content_moderation -id: paragraph.card_promotion_auto.default -targetEntityType: paragraph -bundle: card_promotion_auto -mode: default -content: - field_paragraph_display_topic: - weight: 106 - settings: - display_label: true - third_party_settings: { } - type: boolean_checkbox - region: content - field_paragraph_cta_text: - weight: 105 - settings: - size: 60 - placeholder: '' - third_party_settings: { } - type: string_textfield - region: content - field_paragraph_reference: - weight: 101 - settings: - match_operator: CONTAINS - size: 60 - placeholder: '' - third_party_settings: { } - type: entity_reference_autocomplete - region: content - moderation_state: - type: moderation_state_default - weight: 100 - settings: { } - region: content - third_party_settings: { } -hidden: - created: true - status: true - uid: true diff --git a/config/install/core.entity_view_display.paragraph.card_promotion_auto.default.yml b/config/install/core.entity_view_display.paragraph.card_promotion_auto.default.yml deleted file mode 100644 index 10475acc..00000000 --- a/config/install/core.entity_view_display.paragraph.card_promotion_auto.default.yml +++ /dev/null @@ -1,36 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.field.paragraph.card_promotion_auto.field_paragraph_display_topic - - field.field.paragraph.card_promotion_auto.field_paragraph_cta_text - - field.field.paragraph.card_promotion_auto.field_paragraph_reference - - paragraphs.paragraphs_type.card_promotion_auto -id: paragraph.card_promotion_auto.default -targetEntityType: paragraph -bundle: card_promotion_auto -mode: default -content: - field_paragraph_link: - weight: 1 - label: above - settings: - trim_length: 80 - url_only: false - url_plain: false - rel: '' - target: '' - third_party_settings: { } - type: link - region: content - field_paragraph_reference: - weight: 0 - label: above - settings: - link: true - third_party_settings: { } - type: entity_reference_label - region: content -hidden: - field_paragraph_cta_text: true - field_paragraph_display_topic: true diff --git a/config/install/field.field.paragraph.card_promotion_auto.field_paragraph_cta_text.yml b/config/install/field.field.paragraph.card_promotion_auto.field_paragraph_cta_text.yml deleted file mode 100644 index 212451e2..00000000 --- a/config/install/field.field.paragraph.card_promotion_auto.field_paragraph_cta_text.yml +++ /dev/null @@ -1,18 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_cta_text - - paragraphs.paragraphs_type.card_promotion_auto -id: paragraph.card_promotion_auto.field_paragraph_cta_text -field_name: field_paragraph_cta_text -entity_type: paragraph -bundle: card_promotion_auto -label: 'CTA Text' -description: '' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: string diff --git a/config/install/field.field.paragraph.card_promotion_auto.field_paragraph_display_topic.yml b/config/install/field.field.paragraph.card_promotion_auto.field_paragraph_display_topic.yml deleted file mode 100644 index 56f2dac8..00000000 --- a/config/install/field.field.paragraph.card_promotion_auto.field_paragraph_display_topic.yml +++ /dev/null @@ -1,21 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_display_topic - - paragraphs.paragraphs_type.card_promotion_auto -id: paragraph.card_promotion_auto.field_paragraph_display_topic -field_name: field_paragraph_display_topic -entity_type: paragraph -bundle: card_promotion_auto -label: 'Display topic on card' -description: '' -required: false -translatable: false -default_value: - - value: 0 -default_value_callback: '' -settings: - on_label: 'On' - off_label: 'Off' -field_type: boolean diff --git a/config/install/field.field.paragraph.card_promotion_auto.field_paragraph_reference.yml b/config/install/field.field.paragraph.card_promotion_auto.field_paragraph_reference.yml deleted file mode 100644 index 8b88e681..00000000 --- a/config/install/field.field.paragraph.card_promotion_auto.field_paragraph_reference.yml +++ /dev/null @@ -1,27 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - field.storage.paragraph.field_paragraph_reference - - node.type.landing_page - - paragraphs.paragraphs_type.card_promotion_auto -id: paragraph.card_promotion_auto.field_paragraph_reference -field_name: field_paragraph_reference -entity_type: paragraph -bundle: card_promotion_auto -label: 'Referred content' -description: '' -required: true -translatable: true -default_value: { } -default_value_callback: '' -settings: - handler: 'default:node' - handler_settings: - target_bundles: - landing_page: landing_page - sort: - field: _none - auto_create: false - auto_create_bundle: landing_page -field_type: entity_reference diff --git a/config/install/field.storage.paragraph.field_paragraph_display_topic.yml b/config/install/field.storage.paragraph.field_paragraph_display_topic.yml deleted file mode 100644 index adec53b9..00000000 --- a/config/install/field.storage.paragraph.field_paragraph_display_topic.yml +++ /dev/null @@ -1,17 +0,0 @@ -langcode: en -status: true -dependencies: - module: - - paragraphs -id: paragraph.field_paragraph_display_topic -field_name: field_paragraph_display_topic -entity_type: paragraph -type: boolean -settings: { } -module: core -locked: false -cardinality: 1 -translatable: true -indexes: { } -persist_with_no_fields: false -custom_storage: false diff --git a/config/install/field.storage.paragraph.field_paragraph_reference.yml b/config/install/field.storage.paragraph.field_paragraph_reference.yml deleted file mode 100644 index 4179decb..00000000 --- a/config/install/field.storage.paragraph.field_paragraph_reference.yml +++ /dev/null @@ -1,19 +0,0 @@ -langcode: en -status: true -dependencies: - module: - - node - - paragraphs -id: paragraph.field_paragraph_reference -field_name: field_paragraph_reference -entity_type: paragraph -type: entity_reference -settings: - target_type: node -module: core -locked: false -cardinality: 1 -translatable: true -indexes: { } -persist_with_no_fields: false -custom_storage: false diff --git a/config/install/paragraphs.paragraphs_type.card_promotion_auto.yml b/config/install/paragraphs.paragraphs_type.card_promotion_auto.yml deleted file mode 100644 index cefeaf8f..00000000 --- a/config/install/paragraphs.paragraphs_type.card_promotion_auto.yml +++ /dev/null @@ -1,8 +0,0 @@ -langcode: en -status: true -dependencies: { } -id: card_promotion_auto -label: 'Card promotion automated' -icon_uuid: null -description: '' -behavior_plugins: { } diff --git a/config/optional/jsonapi_extras.jsonapi_resource_config.paragraph--card_promotion_auto.yml b/config/optional/jsonapi_extras.jsonapi_resource_config.paragraph--card_promotion_auto.yml deleted file mode 100644 index 69181487..00000000 --- a/config/optional/jsonapi_extras.jsonapi_resource_config.paragraph--card_promotion_auto.yml +++ /dev/null @@ -1,162 +0,0 @@ -langcode: en -status: true -dependencies: - config: - - paragraphs.paragraphs_type.card_promotion_auto -id: paragraph--card_promotion_auto -disabled: false -path: paragraph/card_promotion_auto -resourceType: paragraph--card_promotion_auto -resourceFields: - id: - fieldName: id - publicName: id - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - uuid: - fieldName: uuid - publicName: uuid - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - revision_id: - fieldName: revision_id - publicName: revision_id - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - type: - fieldName: type - publicName: entity_type - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - langcode: - fieldName: langcode - publicName: langcode - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - uid: - fieldName: uid - publicName: uid - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - status: - fieldName: status - publicName: status - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - created: - fieldName: created - publicName: created - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - revision_uid: - fieldName: revision_uid - publicName: revision_uid - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - parent_id: - fieldName: parent_id - publicName: parent_id - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - parent_type: - fieldName: parent_type - publicName: parent_type - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - parent_field_name: - fieldName: parent_field_name - publicName: parent_field_name - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - behavior_settings: - fieldName: behavior_settings - publicName: behavior_settings - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - default_langcode: - fieldName: default_langcode - publicName: default_langcode - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - revision_default: - fieldName: revision_default - publicName: revision_default - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - revision_translation_affected: - fieldName: revision_translation_affected - publicName: revision_translation_affected - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - moderation_state: - fieldName: moderation_state - publicName: moderation_state - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_cta_text: - fieldName: field_paragraph_cta_text - publicName: field_paragraph_cta_text - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' - field_paragraph_reference: - fieldName: field_paragraph_reference - publicName: field_paragraph_reference - enhancer: - id: '' - disabled: false - advancedOptionsIcon: '' - enhancer_label: '' diff --git a/tide_landing_page.info.yml b/tide_landing_page.info.yml index c5be0f69..418588d9 100644 --- a/tide_landing_page.info.yml +++ b/tide_landing_page.info.yml @@ -39,7 +39,6 @@ config_devel: - core.entity_form_display.paragraph.card_navigation_auto.default - core.entity_form_display.paragraph.card_navigation_featured.default - core.entity_form_display.paragraph.card_navigation_featured_auto.default - - core.entity_form_display.paragraph.card_promotion_auto.default - core.entity_form_display.paragraph.complex_image.default - core.entity_form_display.paragraph.embedded_search_form.default - core.entity_form_display.paragraph.form_embed_openforms.default @@ -63,7 +62,6 @@ config_devel: - core.entity_view_display.paragraph.card_navigation_auto.default - core.entity_view_display.paragraph.card_navigation_featured.default - core.entity_view_display.paragraph.card_navigation_featured_auto.default - - core.entity_view_display.paragraph.card_promotion_auto.default - core.entity_view_display.paragraph.complex_image.default - core.entity_view_display.paragraph.embedded_search_form.default - core.entity_view_display.paragraph.form_embed_openforms.default @@ -132,9 +130,6 @@ config_devel: - field.field.paragraph.card_navigation_featured.field_paragraph_title - field.field.paragraph.card_navigation_featured_auto.field_paragraph_reference - field.field.paragraph.card_keydates.field_paragraph_cta - - field.field.paragraph.card_promotion_auto.field_paragraph_display_topic.yml - - field.field.paragraph.card_promotion_auto.field_paragraph_reference - - field.field.paragraph.card_promotion_auto.field_paragraph_cta_text - field.field.paragraph.complex_image.field_complex_image_data - field.field.paragraph.complex_image.field_complex_image_data_label - field.field.paragraph.complex_image.field_complex_image_dl_label @@ -186,7 +181,6 @@ config_devel: - field.storage.block_content.field_block_title - field.storage.block_content.field_gallery_featured_image - field.storage.block_content.field_gallery_media - - field.storage.paragraph.field_paragraph_display_topic.yml - field.storage.paragraph.field_paragraph_media_gallery - field.storage.node.field_landing_page_c_secondary - field.storage.node.field_landing_page_c_primary @@ -219,7 +213,6 @@ config_devel: - field.storage.paragraph.field_paragraph_location - field.storage.paragraph.field_paragraph_link_text - field.storage.paragraph.field_paragraph_links - - field.storage.paragraph.field_paragraph_reference - field.storage.paragraph.field_paragraph_title - field.storage.paragraph.field_paragraph_keydate - field.storage.paragraph.field_paragraph_keydates @@ -246,7 +239,6 @@ config_devel: - paragraphs.paragraphs_type.card_navigation_auto - paragraphs.paragraphs_type.card_navigation_featured - paragraphs.paragraphs_type.card_navigation_featured_auto - - paragraphs.paragraphs_type.card_promotion_auto - paragraphs.paragraphs_type.complex_image - paragraphs.paragraphs_type.embedded_search_form - paragraphs.paragraphs_type.embedded_webform diff --git a/tide_landing_page.install b/tide_landing_page.install index 73eb5cfa..6af45be5 100644 --- a/tide_landing_page.install +++ b/tide_landing_page.install @@ -2584,6 +2584,15 @@ function tide_landing_page_update_8049() { 'jsonapi_extras.jsonapi_resource_config.paragraph--card_promotion', 'paragraphs.paragraphs_type.card_promotion', 'field.storage.paragraph.field_paragraph_date', + 'core.entity_form_display.paragraph.card_promotion_auto.default', + 'core.entity_view_display.paragraph.card_promotion_auto.default', + 'field.field.paragraph.card_promotion_auto.field_paragraph_reference', + 'field.field.paragraph.card_promotion_auto.field_paragraph_cta_text', + 'field.field.paragraph.card_promotion_auto.field_paragraph_display_topic', + 'jsonapi_extras.jsonapi_resource_config.paragraph--card_promotion_auto', + 'paragraphs.paragraphs_type.card_promotion_auto', + 'field.storage.paragraph.field_paragraph_display_topic', + 'field.storage.paragraph.field_paragraph_reference', ]; foreach ($config_lists as $config) { $config = \Drupal::configFactory()->getEditable($config); From 8eef907c519a9f52c84065f94fa982f61d6449c0 Mon Sep 17 00:00:00 2001 From: Md Nadim Hossain Date: Tue, 7 Mar 2023 12:30:32 +1100 Subject: [PATCH 7/8] Removed card references from other fields and test. --- ...ield.node.landing_page.field_landing_page_component.yml | 4 ---- ....field.node.landing_page.field_landing_page_contact.yml | 3 --- ...d.field.node.landing_page.field_landing_page_header.yml | 3 --- ...ld.node.landing_page.field_landing_page_hero_banner.yml | 3 --- ...field.paragraph.card_carousel.field_paragraph_items.yml | 7 ------- ...d.field.paragraph.contact_us.field_paragraph_phones.yml | 3 --- ...d.paragraph.contact_us.field_paragraph_social_media.yml | 3 --- ...agraph.latest_events.field_paragraph_cta_card_event.yml | 3 --- ...eld.paragraph.statistics_grid.field_statistic_block.yml | 3 --- tests/behat/features/fields.feature | 4 ---- tide_landing_page.install | 4 ++++ 11 files changed, 4 insertions(+), 36 deletions(-) diff --git a/config/install/field.field.node.landing_page.field_landing_page_component.yml b/config/install/field.field.node.landing_page.field_landing_page_component.yml index a64092d5..4d523302 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_component.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_component.yml @@ -9,7 +9,6 @@ dependencies: - paragraphs.paragraphs_type.call_to_action - paragraphs.paragraphs_type.card_carousel - paragraphs.paragraphs_type.card_keydates - - paragraphs.paragraphs_type.card_promotion_auto - paragraphs.paragraphs_type.complex_image - paragraphs.paragraphs_type.data_table - paragraphs.paragraphs_type.form_embed_openforms @@ -61,9 +60,6 @@ settings: accordion: enabled: true weight: -31 - card_promotion_auto: - enabled: false - weight: -26 complex_image: enabled: true weight: -17 diff --git a/config/install/field.field.node.landing_page.field_landing_page_contact.yml b/config/install/field.field.node.landing_page.field_landing_page_contact.yml index ab99d7d8..17e12e74 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_contact.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_contact.yml @@ -42,9 +42,6 @@ settings: card_keydates: weight: 26 enabled: false - card_promotion_auto: - weight: 32 - enabled: false keydates: weight: 33 enabled: false diff --git a/config/install/field.field.node.landing_page.field_landing_page_header.yml b/config/install/field.field.node.landing_page.field_landing_page_header.yml index ecb60831..b8dcef4b 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_header.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_header.yml @@ -50,9 +50,6 @@ settings: card_keydates: weight: 32 enabled: false - card_promotion_auto: - weight: 38 - enabled: false contact_us: weight: 39 enabled: false diff --git a/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml b/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml index e7e6fea8..9a46481f 100644 --- a/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml +++ b/config/install/field.field.node.landing_page.field_landing_page_hero_banner.yml @@ -51,9 +51,6 @@ settings: card_keydates: weight: 45 enabled: false - card_promotion_auto: - weight: 51 - enabled: false contact_us: weight: 52 enabled: false diff --git a/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml b/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml index 58eaee12..773a57f9 100644 --- a/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml +++ b/config/install/field.field.paragraph.card_carousel.field_paragraph_items.yml @@ -5,8 +5,6 @@ dependencies: - field.storage.paragraph.field_paragraph_items - paragraphs.paragraphs_type.card_carousel - paragraphs.paragraphs_type.card_keydates - - paragraphs.paragraphs_type.card_promotion - - paragraphs.paragraphs_type.card_promotion_auto module: - entity_reference_revisions id: paragraph.card_carousel.field_paragraph_items @@ -25,8 +23,6 @@ settings: negate: 0 target_bundles: card_keydates: card_keydates - card_promotion: card_promotion - card_promotion_auto: card_promotion_auto target_bundles_drag_drop: accordion: weight: -61 @@ -52,9 +48,6 @@ settings: card_keydates: enabled: true weight: -52 - card_promotion_auto: - enabled: true - weight: -46 contact_us: weight: -45 enabled: false diff --git a/config/install/field.field.paragraph.contact_us.field_paragraph_phones.yml b/config/install/field.field.paragraph.contact_us.field_paragraph_phones.yml index 06e3be99..615b11bc 100644 --- a/config/install/field.field.paragraph.contact_us.field_paragraph_phones.yml +++ b/config/install/field.field.paragraph.contact_us.field_paragraph_phones.yml @@ -42,9 +42,6 @@ settings: card_keydates: weight: 26 enabled: false - card_promotion_auto: - weight: 32 - enabled: false keydates: weight: 33 enabled: false diff --git a/config/install/field.field.paragraph.contact_us.field_paragraph_social_media.yml b/config/install/field.field.paragraph.contact_us.field_paragraph_social_media.yml index e5187234..971d2339 100644 --- a/config/install/field.field.paragraph.contact_us.field_paragraph_social_media.yml +++ b/config/install/field.field.paragraph.contact_us.field_paragraph_social_media.yml @@ -42,9 +42,6 @@ settings: card_keydates: weight: 26 enabled: false - card_promotion_auto: - weight: 32 - enabled: false keydates: weight: 33 enabled: false diff --git a/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml b/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml index 2ee35e62..b0f78b46 100644 --- a/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml +++ b/config/install/field.field.paragraph.latest_events.field_paragraph_cta_card_event.yml @@ -48,9 +48,6 @@ settings: card_keydates: weight: 37 enabled: false - card_promotion_auto: - weight: 43 - enabled: false contact_us: weight: 44 enabled: false diff --git a/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml b/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml index 0f7ad0d1..28825a3c 100644 --- a/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml +++ b/config/install/field.field.paragraph.statistics_grid.field_statistic_block.yml @@ -51,9 +51,6 @@ settings: card_keydates: weight: 88 enabled: false - card_promotion_auto: - weight: 90 - enabled: false clients: weight: 91 enabled: false diff --git a/tests/behat/features/fields.feature b/tests/behat/features/fields.feature index 50d71701..335ca66a 100644 --- a/tests/behat/features/fields.feature +++ b/tests/behat/features/fields.feature @@ -73,8 +73,6 @@ Feature: Fields for Landing Page content type And I should see the button "Accordion" And I should see the button "Call to action" And I should see the button "Card carousel" - And I should see the button "Card event" - And I should see the button "Card event automated" And I should see the button "Latest events" And I should see the button "Promotion card" And I should see the button "Navigation card" @@ -206,8 +204,6 @@ Feature: Fields for Landing Page content type And I should see the button "Accordion" And I should see the button "Call to action" And I should see the button "Card carousel" - And I should see the button "Card event" - And I should see the button "Card event automated" And I should see the button "Latest events" And I should see the button "Promotion card" And I should see the button "Navigation card" diff --git a/tide_landing_page.install b/tide_landing_page.install index 6af45be5..7d2bff07 100644 --- a/tide_landing_page.install +++ b/tide_landing_page.install @@ -2535,6 +2535,8 @@ function tide_landing_page_update_8049() { 'news_listing', 'card_event', 'card_event_auto', + 'card_promotion', + 'card_promotion_auto', ]; // Clear the db. $ids = \Drupal::entityQuery('paragraph')->execute(); @@ -2611,6 +2613,8 @@ function tide_landing_page_update_8050() { 'news_listing', 'card_event', 'card_event_auto', + 'card_promotion', + 'card_promotion_auto', ]; $field = FieldConfig::loadByName('node', 'landing_page', 'field_landing_page_component'); if ($field) { From 86494eaeb96537d772db2d26df7481eb11b194c3 Mon Sep 17 00:00:00 2001 From: Md Nadim Hossain Date: Tue, 7 Mar 2023 13:13:16 +1100 Subject: [PATCH 8/8] Added lint fix. --- tide_landing_page.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tide_landing_page.install b/tide_landing_page.install index 7d2bff07..e48c85a2 100644 --- a/tide_landing_page.install +++ b/tide_landing_page.install @@ -2581,7 +2581,7 @@ function tide_landing_page_update_8049() { 'field.field.paragraph.card_promotion.field_paragraph_date', 'field.field.paragraph.card_promotion.field_paragraph_link', 'field.field.paragraph.card_promotion.field_paragraph_media', - 'field.field.paragraph.card_promotion.field_paragraph_summary'. + 'field.field.paragraph.card_promotion.field_paragraph_summary', 'field.field.paragraph.card_promotion.field_paragraph_title', 'jsonapi_extras.jsonapi_resource_config.paragraph--card_promotion', 'paragraphs.paragraphs_type.card_promotion',