From a89168aa6c40629d2a440c8703ff69914bdaa693 Mon Sep 17 00:00:00 2001 From: Daniel Sasser Date: Wed, 28 Jun 2023 10:45:39 -0700 Subject: [PATCH] VACMS-11921: Deprecate old homepage cms elements (#14192) * VACMS-11921: Removes FEATURE_HOMEPAGE_V2 feature toggle. * VACMS-11921: Removes homepage-top-tasks-blocks menu. * VACMS-11921: Removes home page hub list entityqueue. * VACMS-11921: Removes home page promos entityqueue. * VACMS-11921: Adds update hook to remove content entities related to homepage deprecated elements. --------- Co-authored-by: Daniel Sasser --- ...ty_subqueue.home_page_hub_list.changed.yml | 18 --------- ...ty_subqueue.home_page_hub_list.created.yml | 18 --------- ...ty_subqueue.home_page_hub_list.metatag.yml | 18 --------- ...ity_subqueue.home_page_hub_list.status.yml | 22 ----------- ...tity_subqueue.home_page_hub_list.title.yml | 18 --------- ...entity_subqueue.home_page_hub_list.uid.yml | 20 ---------- ...tity_subqueue.home_page_promos.changed.yml | 18 --------- ...tity_subqueue.home_page_promos.created.yml | 18 --------- ...tity_subqueue.home_page_promos.metatag.yml | 18 --------- ...ntity_subqueue.home_page_promos.status.yml | 22 ----------- ...entity_subqueue.home_page_promos.title.yml | 18 --------- ...e.entity_subqueue.home_page_promos.uid.yml | 20 ---------- ...tent.homepage-top-tasks-blocks.changed.yml | 18 --------- ....homepage-top-tasks-blocks.description.yml | 18 --------- ...tent.homepage-top-tasks-blocks.metatag.yml | 18 --------- ...ontent.homepage-top-tasks-blocks.title.yml | 18 --------- ...nt.homepage-top-tasks-blocks.view_mode.yml | 20 ---------- ...yqueue.entity_queue.home_page_hub_list.yml | 25 ------------- ...ityqueue.entity_queue.home_page_promos.yml | 25 ------------- config/sync/feature_toggle.features.yml | 1 - ...ngs.entity_subqueue.home_page_hub_list.yml | 18 --------- ...tings.entity_subqueue.home_page_promos.yml | 18 --------- ...link_content.homepage-top-tasks-blocks.yml | 18 --------- .../system.menu.homepage-top-tasks-blocks.yml | 14 ------- .../custom/va_gov_home/va_gov_home.install | 37 +++++++++++++++++++ 25 files changed, 37 insertions(+), 439 deletions(-) delete mode 100644 config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.changed.yml delete mode 100644 config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.created.yml delete mode 100644 config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.metatag.yml delete mode 100644 config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.status.yml delete mode 100644 config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.title.yml delete mode 100644 config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.uid.yml delete mode 100644 config/sync/core.base_field_override.entity_subqueue.home_page_promos.changed.yml delete mode 100644 config/sync/core.base_field_override.entity_subqueue.home_page_promos.created.yml delete mode 100644 config/sync/core.base_field_override.entity_subqueue.home_page_promos.metatag.yml delete mode 100644 config/sync/core.base_field_override.entity_subqueue.home_page_promos.status.yml delete mode 100644 config/sync/core.base_field_override.entity_subqueue.home_page_promos.title.yml delete mode 100644 config/sync/core.base_field_override.entity_subqueue.home_page_promos.uid.yml delete mode 100644 config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.changed.yml delete mode 100644 config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.description.yml delete mode 100644 config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.metatag.yml delete mode 100644 config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.title.yml delete mode 100644 config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.view_mode.yml delete mode 100644 config/sync/entityqueue.entity_queue.home_page_hub_list.yml delete mode 100644 config/sync/entityqueue.entity_queue.home_page_promos.yml delete mode 100644 config/sync/language.content_settings.entity_subqueue.home_page_hub_list.yml delete mode 100644 config/sync/language.content_settings.entity_subqueue.home_page_promos.yml delete mode 100644 config/sync/language.content_settings.menu_link_content.homepage-top-tasks-blocks.yml delete mode 100644 config/sync/system.menu.homepage-top-tasks-blocks.yml create mode 100644 docroot/modules/custom/va_gov_home/va_gov_home.install diff --git a/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.changed.yml b/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.changed.yml deleted file mode 100644 index 2c80beca2..000000000 --- a/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.changed.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: 533ca820-c0ee-497e-a592-c752a633edc4 -langcode: en -status: true -dependencies: - config: - - entityqueue.entity_queue.home_page_hub_list -id: entity_subqueue.home_page_hub_list.changed -field_name: changed -entity_type: entity_subqueue -bundle: home_page_hub_list -label: Changed -description: 'The time that the subqueue was last edited.' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: changed diff --git a/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.created.yml b/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.created.yml deleted file mode 100644 index 6b3f13166..000000000 --- a/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.created.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: 5b410e55-a1e2-4145-9cc1-bcc795eb0f59 -langcode: en -status: true -dependencies: - config: - - entityqueue.entity_queue.home_page_hub_list -id: entity_subqueue.home_page_hub_list.created -field_name: created -entity_type: entity_subqueue -bundle: home_page_hub_list -label: 'Authored on' -description: 'The time that the subqueue was created.' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: created diff --git a/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.metatag.yml b/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.metatag.yml deleted file mode 100644 index c9514d432..000000000 --- a/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.metatag.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: 0a93095f-f9dc-46a8-bf7c-8f5fc476e01b -langcode: en -status: true -dependencies: - config: - - entityqueue.entity_queue.home_page_hub_list -id: entity_subqueue.home_page_hub_list.metatag -field_name: metatag -entity_type: entity_subqueue -bundle: home_page_hub_list -label: 'Metatags (Hidden field for JSON support)' -description: 'The meta tags for the entity.' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: map diff --git a/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.status.yml b/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.status.yml deleted file mode 100644 index 29d851eeb..000000000 --- a/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.status.yml +++ /dev/null @@ -1,22 +0,0 @@ -uuid: 5c1a9ed6-232f-4164-9b5e-fdf5b8a9cb2a -langcode: en -status: true -dependencies: - config: - - entityqueue.entity_queue.home_page_hub_list -id: entity_subqueue.home_page_hub_list.status -field_name: status -entity_type: entity_subqueue -bundle: home_page_hub_list -label: Published -description: '' -required: false -translatable: false -default_value: - - - value: 1 -default_value_callback: '' -settings: - on_label: 'On' - off_label: 'Off' -field_type: boolean diff --git a/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.title.yml b/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.title.yml deleted file mode 100644 index df6f921be..000000000 --- a/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.title.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: fff4eaf3-7e53-4cfb-877b-a0cf3b151708 -langcode: en -status: true -dependencies: - config: - - entityqueue.entity_queue.home_page_hub_list -id: entity_subqueue.home_page_hub_list.title -field_name: title -entity_type: entity_subqueue -bundle: home_page_hub_list -label: Title -description: '' -required: true -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: string diff --git a/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.uid.yml b/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.uid.yml deleted file mode 100644 index 9fd6a39b1..000000000 --- a/config/sync/core.base_field_override.entity_subqueue.home_page_hub_list.uid.yml +++ /dev/null @@ -1,20 +0,0 @@ -uuid: dff673fb-7d47-4c5d-b640-f2c680f1bc21 -langcode: en -status: true -dependencies: - config: - - entityqueue.entity_queue.home_page_hub_list -id: entity_subqueue.home_page_hub_list.uid -field_name: uid -entity_type: entity_subqueue -bundle: home_page_hub_list -label: 'User ID' -description: '' -required: false -translatable: false -default_value: { } -default_value_callback: 'Drupal\entityqueue\Entity\EntitySubqueue::getDefaultEntityOwner' -settings: - handler: default - handler_settings: { } -field_type: entity_reference diff --git a/config/sync/core.base_field_override.entity_subqueue.home_page_promos.changed.yml b/config/sync/core.base_field_override.entity_subqueue.home_page_promos.changed.yml deleted file mode 100644 index 99bcab0f4..000000000 --- a/config/sync/core.base_field_override.entity_subqueue.home_page_promos.changed.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: ea81b611-f5ed-4e76-82ac-1db56401ebc0 -langcode: en -status: true -dependencies: - config: - - entityqueue.entity_queue.home_page_promos -id: entity_subqueue.home_page_promos.changed -field_name: changed -entity_type: entity_subqueue -bundle: home_page_promos -label: Changed -description: 'The time that the subqueue was last edited.' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: changed diff --git a/config/sync/core.base_field_override.entity_subqueue.home_page_promos.created.yml b/config/sync/core.base_field_override.entity_subqueue.home_page_promos.created.yml deleted file mode 100644 index e595be7b4..000000000 --- a/config/sync/core.base_field_override.entity_subqueue.home_page_promos.created.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: 2572164e-8f82-4115-8bfa-81873ad4f998 -langcode: en -status: true -dependencies: - config: - - entityqueue.entity_queue.home_page_promos -id: entity_subqueue.home_page_promos.created -field_name: created -entity_type: entity_subqueue -bundle: home_page_promos -label: 'Authored on' -description: 'The time that the subqueue was created.' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: created diff --git a/config/sync/core.base_field_override.entity_subqueue.home_page_promos.metatag.yml b/config/sync/core.base_field_override.entity_subqueue.home_page_promos.metatag.yml deleted file mode 100644 index eeb93c568..000000000 --- a/config/sync/core.base_field_override.entity_subqueue.home_page_promos.metatag.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: 95a553f5-306c-4967-9481-e11ded61daa2 -langcode: en -status: true -dependencies: - config: - - entityqueue.entity_queue.home_page_promos -id: entity_subqueue.home_page_promos.metatag -field_name: metatag -entity_type: entity_subqueue -bundle: home_page_promos -label: 'Metatags (Hidden field for JSON support)' -description: 'The meta tags for the entity.' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: map diff --git a/config/sync/core.base_field_override.entity_subqueue.home_page_promos.status.yml b/config/sync/core.base_field_override.entity_subqueue.home_page_promos.status.yml deleted file mode 100644 index 1a1aa3472..000000000 --- a/config/sync/core.base_field_override.entity_subqueue.home_page_promos.status.yml +++ /dev/null @@ -1,22 +0,0 @@ -uuid: 14f7bebb-6988-484f-a8bd-8dae396052a7 -langcode: en -status: true -dependencies: - config: - - entityqueue.entity_queue.home_page_promos -id: entity_subqueue.home_page_promos.status -field_name: status -entity_type: entity_subqueue -bundle: home_page_promos -label: Published -description: '' -required: false -translatable: false -default_value: - - - value: 1 -default_value_callback: '' -settings: - on_label: 'On' - off_label: 'Off' -field_type: boolean diff --git a/config/sync/core.base_field_override.entity_subqueue.home_page_promos.title.yml b/config/sync/core.base_field_override.entity_subqueue.home_page_promos.title.yml deleted file mode 100644 index dff822b50..000000000 --- a/config/sync/core.base_field_override.entity_subqueue.home_page_promos.title.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: ce1e0c00-9706-4876-a12e-ad783fca28b0 -langcode: en -status: true -dependencies: - config: - - entityqueue.entity_queue.home_page_promos -id: entity_subqueue.home_page_promos.title -field_name: title -entity_type: entity_subqueue -bundle: home_page_promos -label: Title -description: '' -required: true -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: string diff --git a/config/sync/core.base_field_override.entity_subqueue.home_page_promos.uid.yml b/config/sync/core.base_field_override.entity_subqueue.home_page_promos.uid.yml deleted file mode 100644 index 94ffbb81f..000000000 --- a/config/sync/core.base_field_override.entity_subqueue.home_page_promos.uid.yml +++ /dev/null @@ -1,20 +0,0 @@ -uuid: 85d94b2d-9e14-4700-a119-e2be96265f65 -langcode: en -status: true -dependencies: - config: - - entityqueue.entity_queue.home_page_promos -id: entity_subqueue.home_page_promos.uid -field_name: uid -entity_type: entity_subqueue -bundle: home_page_promos -label: 'User ID' -description: '' -required: false -translatable: false -default_value: { } -default_value_callback: 'Drupal\entityqueue\Entity\EntitySubqueue::getDefaultEntityOwner' -settings: - handler: default - handler_settings: { } -field_type: entity_reference diff --git a/config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.changed.yml b/config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.changed.yml deleted file mode 100644 index a92a424e1..000000000 --- a/config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.changed.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: e43d9484-3d39-4c68-891f-1d729f7d7a83 -langcode: en -status: true -dependencies: - config: - - system.menu.homepage-top-tasks-blocks -id: menu_link_content.homepage-top-tasks-blocks.changed -field_name: changed -entity_type: menu_link_content -bundle: homepage-top-tasks-blocks -label: Changed -description: 'The time that the menu link was last edited.' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: changed diff --git a/config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.description.yml b/config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.description.yml deleted file mode 100644 index f4503396a..000000000 --- a/config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.description.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: 8038b1db-dec7-4fcd-93be-73f5f7604c18 -langcode: en -status: true -dependencies: - config: - - system.menu.homepage-top-tasks-blocks -id: menu_link_content.homepage-top-tasks-blocks.description -field_name: description -entity_type: menu_link_content -bundle: homepage-top-tasks-blocks -label: Description -description: 'Shown when hovering over the menu link.' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: string diff --git a/config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.metatag.yml b/config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.metatag.yml deleted file mode 100644 index 4ffb5635a..000000000 --- a/config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.metatag.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: d36f153f-6c72-48cd-9cf1-341e617d7de5 -langcode: en -status: true -dependencies: - config: - - system.menu.homepage-top-tasks-blocks -id: menu_link_content.homepage-top-tasks-blocks.metatag -field_name: metatag -entity_type: menu_link_content -bundle: homepage-top-tasks-blocks -label: 'Metatags (Hidden field for JSON support)' -description: 'The meta tags for the entity.' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: map diff --git a/config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.title.yml b/config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.title.yml deleted file mode 100644 index 51588cfbd..000000000 --- a/config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.title.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: 8b65c630-cca0-47f7-8875-d42948cf26be -langcode: en -status: true -dependencies: - config: - - system.menu.homepage-top-tasks-blocks -id: menu_link_content.homepage-top-tasks-blocks.title -field_name: title -entity_type: menu_link_content -bundle: homepage-top-tasks-blocks -label: 'Menu link title' -description: 'The text to be used for this link in the menu.' -required: true -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: string diff --git a/config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.view_mode.yml b/config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.view_mode.yml deleted file mode 100644 index 6473ff2e1..000000000 --- a/config/sync/core.base_field_override.menu_link_content.homepage-top-tasks-blocks.view_mode.yml +++ /dev/null @@ -1,20 +0,0 @@ -uuid: aefe048d-38b8-4b2f-8131-3d06f2fb7544 -langcode: en -status: true -dependencies: - config: - - system.menu.homepage-top-tasks-blocks - module: - - menu_item_extras -id: menu_link_content.homepage-top-tasks-blocks.view_mode -field_name: view_mode -entity_type: menu_link_content -bundle: homepage-top-tasks-blocks -label: 'View mode' -description: 'Per item view mode selector.' -required: false -translatable: false -default_value: { } -default_value_callback: '' -settings: { } -field_type: string diff --git a/config/sync/entityqueue.entity_queue.home_page_hub_list.yml b/config/sync/entityqueue.entity_queue.home_page_hub_list.yml deleted file mode 100644 index d6b6bbb62..000000000 --- a/config/sync/entityqueue.entity_queue.home_page_hub_list.yml +++ /dev/null @@ -1,25 +0,0 @@ -uuid: 4b682940-4ecc-435c-b7ef-9da3164f16cc -langcode: en -status: true -dependencies: - module: - - node -id: home_page_hub_list -label: 'Home page hub list' -handler: simple -handler_configuration: { } -entity_settings: - target_type: node - handler: 'default:node' - handler_settings: - target_bundles: - landing_page: landing_page - sort: - field: _none - auto_create: false - auto_create_bundle: '' -queue_settings: - min_size: 0 - max_size: 11 - act_as_queue: false - reverse_in_admin: false diff --git a/config/sync/entityqueue.entity_queue.home_page_promos.yml b/config/sync/entityqueue.entity_queue.home_page_promos.yml deleted file mode 100644 index c51853e7d..000000000 --- a/config/sync/entityqueue.entity_queue.home_page_promos.yml +++ /dev/null @@ -1,25 +0,0 @@ -uuid: 642bf7e4-01f7-4225-9ae8-a2252960306e -langcode: en -status: true -dependencies: - module: - - block_content -id: home_page_promos -label: 'Home page promos' -handler: simple -handler_configuration: { } -entity_settings: - target_type: block_content - handler: 'default:block_content' - handler_settings: - target_bundles: - promo: promo - sort: - field: _none - auto_create: false - auto_create_bundle: '' -queue_settings: - min_size: 3 - max_size: 3 - act_as_queue: false - reverse_in_admin: false diff --git a/config/sync/feature_toggle.features.yml b/config/sync/feature_toggle.features.yml index 27b8b7177..cf1424586 100644 --- a/config/sync/feature_toggle.features.yml +++ b/config/sync/feature_toggle.features.yml @@ -4,4 +4,3 @@ features: feature_all_hub_side_navs: FEATURE_ALL_HUB_SIDE_NAVS feature_single_value_field_link: FEATURE_SINGLE_VALUE_FIELD_LINK feature_health_connect_number: FEATURE_HEALTH_CONNECT_NUMBER - feature_homepage_v2: FEATURE_HOMEPAGE_V2 diff --git a/config/sync/language.content_settings.entity_subqueue.home_page_hub_list.yml b/config/sync/language.content_settings.entity_subqueue.home_page_hub_list.yml deleted file mode 100644 index 846afa9e3..000000000 --- a/config/sync/language.content_settings.entity_subqueue.home_page_hub_list.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: 05dae9de-87c9-4708-892a-3eb9ad44f1ca -langcode: en -status: true -dependencies: - config: - - entityqueue.entity_queue.home_page_hub_list - module: - - content_translation -third_party_settings: - content_translation: - enabled: false - bundle_settings: - untranslatable_fields_hide: '0' -id: entity_subqueue.home_page_hub_list -target_entity_type_id: entity_subqueue -target_bundle: home_page_hub_list -default_langcode: site_default -language_alterable: false diff --git a/config/sync/language.content_settings.entity_subqueue.home_page_promos.yml b/config/sync/language.content_settings.entity_subqueue.home_page_promos.yml deleted file mode 100644 index f83c8eeaf..000000000 --- a/config/sync/language.content_settings.entity_subqueue.home_page_promos.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: 0ac01201-b8d1-4111-96f2-0885b494ce65 -langcode: en -status: true -dependencies: - config: - - entityqueue.entity_queue.home_page_promos - module: - - content_translation -third_party_settings: - content_translation: - enabled: false - bundle_settings: - untranslatable_fields_hide: '0' -id: entity_subqueue.home_page_promos -target_entity_type_id: entity_subqueue -target_bundle: home_page_promos -default_langcode: site_default -language_alterable: false diff --git a/config/sync/language.content_settings.menu_link_content.homepage-top-tasks-blocks.yml b/config/sync/language.content_settings.menu_link_content.homepage-top-tasks-blocks.yml deleted file mode 100644 index bfdab175d..000000000 --- a/config/sync/language.content_settings.menu_link_content.homepage-top-tasks-blocks.yml +++ /dev/null @@ -1,18 +0,0 @@ -uuid: 8b139351-2c62-4b62-8877-2ae9cc1ffab2 -langcode: en -status: true -dependencies: - config: - - system.menu.homepage-top-tasks-blocks - module: - - content_translation -third_party_settings: - content_translation: - enabled: false - bundle_settings: - untranslatable_fields_hide: '0' -id: menu_link_content.homepage-top-tasks-blocks -target_entity_type_id: menu_link_content -target_bundle: homepage-top-tasks-blocks -default_langcode: site_default -language_alterable: false diff --git a/config/sync/system.menu.homepage-top-tasks-blocks.yml b/config/sync/system.menu.homepage-top-tasks-blocks.yml deleted file mode 100644 index 27792a8a1..000000000 --- a/config/sync/system.menu.homepage-top-tasks-blocks.yml +++ /dev/null @@ -1,14 +0,0 @@ -uuid: 2cbdd4bb-e825-4a1d-8cd5-de4e825f42f8 -langcode: en -status: true -dependencies: - module: - - workbench_menu_access -third_party_settings: - workbench_menu_access: - access_scheme: - 5: '158' -id: homepage-top-tasks-blocks -label: 'Homepage top tasks blocks' -description: '' -locked: false diff --git a/docroot/modules/custom/va_gov_home/va_gov_home.install b/docroot/modules/custom/va_gov_home/va_gov_home.install new file mode 100644 index 000000000..cf8359e08 --- /dev/null +++ b/docroot/modules/custom/va_gov_home/va_gov_home.install @@ -0,0 +1,37 @@ +condition('menu_name', 'homepage-top-tasks-blocks') + ->execute(); + $linkStorage = \Drupal::entityTypeManager()->getStorage('menu_link_content'); + + $entities = $linkStorage->loadMultiple($mids); + $linkStorage->delete($entities); +} + +/** + * Delete the home_page_promos and home_page_hub_list entityqueues. + */ +function va_gov_home_update_8002() { + $queues = [ + 'home_page_promos', + 'home_page_hub_list', + ]; + foreach ($queues as $queue) { + $subQ = EntitySubqueue::load($queue); + if ($subQ instanceof EntitySubqueue) { + $subQ->delete(); + } + } +}