Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_ct_catalog
Manage
Activity
Members
Labels
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_ct_catalog
Merge requests
!52
Feature/istwcms 5818 ebremner rename st paul
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/istwcms 5818 ebremner rename st paul
feature/ISTWCMS-5818-ebremner-rename-st-paul
into
1.0.x
Overview
0
Commits
2
Pipelines
0
Changes
1
Merged
Eric Bremner
requested to merge
feature/ISTWCMS-5818-ebremner-rename-st-paul
into
1.0.x
2 years ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
👍
0
👎
0
Merge request reports
Compare
1.0.x
1.0.x (base)
and
latest version
latest version
26e6cf5e
2 commits,
2 years ago
1 file
+
18
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
uw_ct_catalog.install
+
18
−
1
Options
@@ -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