Skip to content
Snippets Groups Projects

Feature/istwcms 5818 ebremner rename st paul

Merged Eric Bremner requested to merge feature/ISTWCMS-5818-ebremner-rename-st-paul into 1.0.x
1 file
+ 18
1
Compare changes
  • Side-by-side
  • Inline
+ 18
1
@@ -48,7 +48,7 @@ function uw_value_lists_options_uw_group() {
'CGC' => 'Conrad Grebel University College',
'REN' => 'Renison University College',
'STJ' => 'St. Jerome’s University',
'STP' => 'St. Paul’s University College',
'STP' => 'United College',
],
'GRAD' => 'Graduate Studies',
'IS' => 'Independent Studies',
@@ -176,3 +176,20 @@ function uw_ct_catalog_update_8102(&$sandbox) {
}
}
}
/**
* ISTWCMS-5818: change St. Paul's to United College.
*/
function uw_ct_catalog_update_9101(&$sandbox) {
// Get the taxonomy term with St. Pauls.
$term = current(\Drupal::entityTypeManager()->getStorage('taxonomy_term')->loadByProperties(['name' => 'St. Paul’s University College']));
// If there is a term, change the name.
if ($term) {
// Change the name to United College and save.
$term->setName('United College');
$term->save();
}
}
Loading