Skip to content

Commit

Permalink
SDSS-1369: Uninstall minimally_branded_subtheme (#493)
Browse files Browse the repository at this point in the history
* SDSS-1369: Uninstall minimally_branded_subtheme.
  • Loading branch information
joegl authored Sep 13, 2024
1 parent 2c87062 commit f278e47
Show file tree
Hide file tree
Showing 17 changed files with 13 additions and 332 deletions.

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.
}
}

0 comments on commit f278e47

Please sign in to comment.