From f278e47fda3a2c26cf127b93ba7f630056d197d2 Mon Sep 17 00:00:00 2001 From: Joe Gilliland-Lloyd <6943710+joegl@users.noreply.github.com> Date: Fri, 13 Sep 2024 15:36:24 -0500 Subject: [PATCH] SDSS-1369: Uninstall minimally_branded_subtheme (#493) * SDSS-1369: Uninstall minimally_branded_subtheme. --- ...ck.minimally_branded_subtheme_branding.yml | 23 -------------- ...inimally_branded_subtheme_config_pages.yml | 29 ----------------- ...theme_config_pages_stanford_global_msg.yml | 29 ----------------- ...eme_config_pages_stanford_super_footer.yml | 29 ----------------- ...ock.minimally_branded_subtheme_content.yml | 20 ------------ ....block.minimally_branded_subtheme_help.yml | 20 ------------ ...minimally_branded_subtheme_local_tasks.yml | 20 ------------ ...minimally_branded_subtheme_main_anchor.yml | 25 --------------- ...mally_branded_subtheme_main_navigation.yml | 25 --------------- ...ck.minimally_branded_subtheme_messages.yml | 20 ------------ ...k.minimally_branded_subtheme_pagetitle.yml | 31 ------------------- ...lock.minimally_branded_subtheme_search.yml | 30 ------------------ ...minimally_branded_subtheme_search_form.yml | 28 ----------------- .../config/sync/chosen.settings.yml | 1 - .../config/sync/config_ignore.settings.yml | 1 - .../config/sync/core.extension.yml | 1 - .../sdss/sdss_profile/sdss_profile.install | 13 ++++++++ 17 files changed, 13 insertions(+), 332 deletions(-) delete mode 100644 docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_branding.yml delete mode 100644 docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_config_pages.yml delete mode 100644 docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_config_pages_stanford_global_msg.yml delete mode 100644 docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_config_pages_stanford_super_footer.yml delete mode 100644 docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_content.yml delete mode 100644 docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_help.yml delete mode 100644 docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_local_tasks.yml delete mode 100644 docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_main_anchor.yml delete mode 100644 docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_main_navigation.yml delete mode 100644 docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_messages.yml delete mode 100644 docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_pagetitle.yml delete mode 100644 docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_search.yml delete mode 100644 docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_search_form.yml diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_branding.yml b/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_branding.yml deleted file mode 100644 index b3bbf63ed..000000000 --- a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_branding.yml +++ /dev/null @@ -1,23 +0,0 @@ -uuid: 7ca2a9f5-f4b9-4640-be29-7f5fbe4cb380 -langcode: en -status: true -dependencies: - module: - - system - theme: - - minimally_branded_subtheme -id: minimally_branded_subtheme_branding -theme: minimally_branded_subtheme -region: header -weight: 0 -provider: null -plugin: system_branding_block -settings: - id: system_branding_block - label: 'Site branding' - label_display: '0' - provider: system - use_site_logo: true - use_site_name: true - use_site_slogan: true -visibility: { } diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_config_pages.yml b/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_config_pages.yml deleted file mode 100644 index 561c8f52c..000000000 --- a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_config_pages.yml +++ /dev/null @@ -1,29 +0,0 @@ -uuid: 6619906c-e614-4f1f-8a12-d023a1c76482 -langcode: en -status: true -dependencies: - module: - - config_pages - theme: - - minimally_branded_subtheme -id: minimally_branded_subtheme_config_pages -theme: minimally_branded_subtheme -region: footer -weight: 0 -provider: null -plugin: config_pages_block -settings: - id: config_pages_block - label: 'Local Footer' - label_display: '0' - provider: config_pages - config_page_type: stanford_local_footer - config_page_view_mode: full -visibility: - config_pages_values_access: - id: config_pages_values_access - negate: false - context_mapping: { } - config_page_field: stanford_local_footer|su_footer_enabled|boolean - operator: '==' - condition_value: '1' diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_config_pages_stanford_global_msg.yml b/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_config_pages_stanford_global_msg.yml deleted file mode 100644 index 3851de615..000000000 --- a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_config_pages_stanford_global_msg.yml +++ /dev/null @@ -1,29 +0,0 @@ -uuid: cefa00f2-f9dd-44ab-8aef-6c8e78f556ad -langcode: en -status: true -dependencies: - module: - - config_pages - theme: - - minimally_branded_subtheme -id: minimally_branded_subtheme_config_pages_stanford_global_msg -theme: minimally_branded_subtheme -region: help -weight: 0 -provider: null -plugin: config_pages_block -settings: - id: config_pages_block - label: 'Global Messages' - label_display: '0' - provider: config_pages - config_page_type: stanford_global_message - config_page_view_mode: full -visibility: - config_pages_values_access: - id: config_pages_values_access - negate: false - context_mapping: { } - config_page_field: stanford_global_message|su_global_msg_enabled|boolean - operator: '==' - condition_value: '1' diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_config_pages_stanford_super_footer.yml b/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_config_pages_stanford_super_footer.yml deleted file mode 100644 index a3fe3e47f..000000000 --- a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_config_pages_stanford_super_footer.yml +++ /dev/null @@ -1,29 +0,0 @@ -uuid: 57100965-ae77-43a5-be4c-c71f21092c47 -langcode: en -status: true -dependencies: - module: - - config_pages - theme: - - minimally_branded_subtheme -id: minimally_branded_subtheme_config_pages_stanford_super_footer -theme: minimally_branded_subtheme -region: footer -weight: -4 -provider: null -plugin: config_pages_block -settings: - id: config_pages_block - label: 'Super Footer' - label_display: '0' - provider: config_pages - config_page_type: stanford_super_footer - config_page_view_mode: full -visibility: - config_pages_values_access: - id: config_pages_values_access - negate: false - context_mapping: { } - config_page_field: stanford_super_footer|su_super_foot_enabled|boolean - operator: '==' - condition_value: '1' diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_content.yml b/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_content.yml deleted file mode 100644 index 52848c912..000000000 --- a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_content.yml +++ /dev/null @@ -1,20 +0,0 @@ -uuid: 27fb3d93-a4dd-4900-8cd2-1daebbf9b8b3 -langcode: en -status: true -dependencies: - module: - - system - theme: - - minimally_branded_subtheme -id: minimally_branded_subtheme_content -theme: minimally_branded_subtheme -region: content -weight: -1 -provider: null -plugin: system_main_block -settings: - id: system_main_block - label: 'Main page content' - label_display: '0' - provider: system -visibility: { } diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_help.yml b/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_help.yml deleted file mode 100644 index 9d627036e..000000000 --- a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_help.yml +++ /dev/null @@ -1,20 +0,0 @@ -uuid: 8e2a9c51-2496-4910-a99b-629d74c86901 -langcode: en -status: true -dependencies: - module: - - help - theme: - - minimally_branded_subtheme -id: minimally_branded_subtheme_help -theme: minimally_branded_subtheme -region: help -weight: 0 -provider: null -plugin: help_block -settings: - id: help_block - label: Help - label_display: '0' - provider: help -visibility: { } diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_local_tasks.yml b/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_local_tasks.yml deleted file mode 100644 index 803e723e3..000000000 --- a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_local_tasks.yml +++ /dev/null @@ -1,20 +0,0 @@ -uuid: 75a66db9-107b-46e6-80b5-a24bb25b40a6 -langcode: en -status: true -dependencies: - theme: - - minimally_branded_subtheme -id: minimally_branded_subtheme_local_tasks -theme: minimally_branded_subtheme -region: content -weight: -3 -provider: null -plugin: local_tasks_block -settings: - id: local_tasks_block - label: Tabs - label_display: '0' - provider: core - primary: true - secondary: true -visibility: { } diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_main_anchor.yml b/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_main_anchor.yml deleted file mode 100644 index 9b74fd29a..000000000 --- a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_main_anchor.yml +++ /dev/null @@ -1,25 +0,0 @@ -uuid: 493712de-d034-41d8-987e-88ef104ec88f -langcode: en -status: true -dependencies: - module: - - jumpstart_ui - - system - theme: - - minimally_branded_subtheme -id: minimally_branded_subtheme_main_anchor -theme: minimally_branded_subtheme -region: content -weight: -3 -provider: null -plugin: jumpstart_ui_skipnav_main_anchor -settings: - id: jumpstart_ui_skipnav_main_anchor - label: 'Main content anchor target' - label_display: '0' - provider: jumpstart_ui -visibility: - request_path: - id: request_path - negate: false - pages: /search diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_main_navigation.yml b/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_main_navigation.yml deleted file mode 100644 index c2d6b2477..000000000 --- a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_main_navigation.yml +++ /dev/null @@ -1,25 +0,0 @@ -uuid: aaa1edf0-1ac4-403a-9f65-8f22454bd7a5 -langcode: en -status: true -dependencies: - config: - - system.menu.main - module: - - system - theme: - - minimally_branded_subtheme -id: minimally_branded_subtheme_main_navigation -theme: minimally_branded_subtheme -region: menu -weight: 0 -provider: null -plugin: 'system_menu_block:main' -settings: - id: 'system_menu_block:main' - label: 'Main navigation' - label_display: '0' - provider: system - level: 1 - depth: 0 - expand_all_items: true -visibility: { } diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_messages.yml b/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_messages.yml deleted file mode 100644 index 96a21ee17..000000000 --- a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_messages.yml +++ /dev/null @@ -1,20 +0,0 @@ -uuid: bfa7a5eb-d9ed-4cba-83c1-5ae2ee80730a -langcode: en -status: true -dependencies: - module: - - system - theme: - - minimally_branded_subtheme -id: minimally_branded_subtheme_messages -theme: minimally_branded_subtheme -region: content -weight: -5 -provider: null -plugin: system_messages_block -settings: - id: system_messages_block - label: Messages - label_display: '0' - provider: system -visibility: { } diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_pagetitle.yml b/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_pagetitle.yml deleted file mode 100644 index 88161794a..000000000 --- a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_pagetitle.yml +++ /dev/null @@ -1,31 +0,0 @@ -uuid: 90f3ec5d-5630-40b2-88d9-17c17f257c93 -langcode: en -status: true -dependencies: - module: - - response_code_condition - - system - theme: - - minimally_branded_subtheme -id: minimally_branded_subtheme_pagetitle -theme: minimally_branded_subtheme -region: content -weight: -4 -provider: null -plugin: page_title_block -settings: - id: page_title_block - label: 'Page title' - label_display: '0' - provider: core -visibility: - request_path: - id: request_path - negate: true - context_mapping: { } - pages: "/node/*\r\n/news*\r\n/people*\r\n/events*\r\n/event-series*\r\n/publications*\r\n/courses*" - response_code: - id: response_code - negate: true - context_mapping: { } - response_codes: "404\r\n403" diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_search.yml b/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_search.yml deleted file mode 100644 index 844a89f45..000000000 --- a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_search.yml +++ /dev/null @@ -1,30 +0,0 @@ -uuid: 9676adb5-893b-4338-8e8a-e91bcf27c2f4 -langcode: en -status: true -dependencies: - config: - - views.view.search - module: - - config_pages - - views - theme: - - minimally_branded_subtheme -id: minimally_branded_subtheme_search -theme: minimally_branded_subtheme -region: search -weight: 0 -provider: null -plugin: 'views_exposed_filter_block:search-results' -settings: - id: 'views_exposed_filter_block:search-results' - label: '' - label_display: '0' - provider: views - views_label: '' -visibility: - config_pages_values_access: - id: config_pages_values_access - negate: false - config_page_field: stanford_basic_site_settings|su_hide_site_search|boolean - operator: '!=' - condition_value: '1' diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_search_form.yml b/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_search_form.yml deleted file mode 100644 index e573ce5d6..000000000 --- a/docroot/profiles/sdss/sdss_profile/config/sync/block.block.minimally_branded_subtheme_search_form.yml +++ /dev/null @@ -1,28 +0,0 @@ -uuid: 22605c70-2bcf-487c-a355-94ec820e8c74 -langcode: en -status: true -dependencies: - config: - - views.view.search - module: - - system - - views - theme: - - minimally_branded_subtheme -id: minimally_branded_subtheme_search_form -theme: minimally_branded_subtheme -region: content -weight: -2 -provider: null -plugin: 'views_exposed_filter_block:search-results' -settings: - id: 'views_exposed_filter_block:search-results' - label: '' - label_display: '0' - provider: views - views_label: '' -visibility: - request_path: - id: request_path - negate: false - pages: /search diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/chosen.settings.yml b/docroot/profiles/sdss/sdss_profile/config/sync/chosen.settings.yml index 90530a0a4..3a3c53d37 100644 --- a/docroot/profiles/sdss/sdss_profile/config/sync/chosen.settings.yml +++ b/docroot/profiles/sdss/sdss_profile/config/sync/chosen.settings.yml @@ -12,7 +12,6 @@ disable_search: false allow_single_deselect: false disabled_themes: claro: '0' - minimally_branded_subtheme: '0' sdss_subtheme: '0' stanford_basic: '0' stanford_profile_admin_theme: '0' diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/config_ignore.settings.yml b/docroot/profiles/sdss/sdss_profile/config/sync/config_ignore.settings.yml index 97cfb529f..b298fc893 100644 --- a/docroot/profiles/sdss/sdss_profile/config/sync/config_ignore.settings.yml +++ b/docroot/profiles/sdss/sdss_profile/config/sync/config_ignore.settings.yml @@ -20,7 +20,6 @@ ignored_config_entities: - 'system.theme:default' - 'user.role.custm_*' - '~block.block.claro_*' - - '~block.block.minimally_branded_subtheme_*' - '~block.block.sdss_subtheme_*' - '~block.block.stanford_basic_*' - '~block.block.stanford_profile_admin_*' diff --git a/docroot/profiles/sdss/sdss_profile/config/sync/core.extension.yml b/docroot/profiles/sdss/sdss_profile/config/sync/core.extension.yml index cb8b433c2..3e125d139 100644 --- a/docroot/profiles/sdss/sdss_profile/config/sync/core.extension.yml +++ b/docroot/profiles/sdss/sdss_profile/config/sync/core.extension.yml @@ -257,7 +257,6 @@ module: theme: stanford_basic: 0 stable9: 0 - minimally_branded_subtheme: 0 sdss_subtheme: 0 claro: 0 stanford_profile_admin_theme: 0 diff --git a/docroot/profiles/sdss/sdss_profile/sdss_profile.install b/docroot/profiles/sdss/sdss_profile/sdss_profile.install index f50a781f9..1bc4ae4e3 100644 --- a/docroot/profiles/sdss/sdss_profile/sdss_profile.install +++ b/docroot/profiles/sdss/sdss_profile/sdss_profile.install @@ -1061,3 +1061,16 @@ function sdss_profile_update_10013() { $sandbox['#finished'] = empty($sandbox['nids']) ? 1 : ($sandbox['count'] - count($sandbox['nids'])) / $sandbox['count']; } + +/** + * Uninstall minimally_branded_subtheme. + */ +function sdss_profile_update_10014() { + /** @var \Drupal\Core\Extension\ThemeInstallerInterface $theme_installer */ + $theme_installer = \Drupal::service('theme_installer'); + try { + $theme_installer->uninstall(['minimally_branded_subtheme']); + } catch (\Exception $e) { + // Theme was already uninstalled. + } +}