Skip to content
Snippets Groups Projects

ISTWCMS-5093 Remove service tags vocab for the existing site

Merged Lily Yan requested to merge feature/ISTWCMS-5093-l26yan-Remove-service-tags-vocab into 1.0.x
1 file
+ 11
0
Compare changes
  • Side-by-side
  • Inline
+ 11
0
@@ -7,6 +7,7 @@
use Drupal\Core\Url;
use Drupal\menu_link_content\Entity\MenuLinkContent;
use Drupal\taxonomy\Entity\Vocabulary;
use Drupal\user\Entity\Role;
/**
@@ -329,3 +330,13 @@ function uw_sites_all_update_8133(&$sandbox) {
];
\Drupal::service('module_installer')->install($modules);
}
/**
* Delete uw_vocab_service_tags.
*/
function uw_sites_all_update_8134(&$sandbox) {
$vocab = Vocabulary::load('uw_vocab_service_tags');
if ($vocab) {
$vocab->delete();
}
}
Loading