Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDSS-1369: Uninstall minimally_branded_subtheme #493

Merged
merged 3 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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_*'
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions docroot/profiles/sdss/sdss_profile/sdss_profile.install
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
}
Loading