From 2968b517af7c810127793bbce2467329988a85c7 Mon Sep 17 00:00:00 2001 From: ebremner <ebremner@uwaterloo.ca> Date: Wed, 2 Jun 2021 21:31:53 -0400 Subject: [PATCH] ISTWCMS-4704: coding standards --- src/Service/UWService.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Service/UWService.php b/src/Service/UWService.php index cee85ba2..7bd89b6a 100644 --- a/src/Service/UWService.php +++ b/src/Service/UWService.php @@ -10,7 +10,6 @@ use Drupal\node\Entity\Node; use Drupal\node\NodeInterface; use Drupal\simplify_menu\MenuItems; use Drupal\path_alias\AliasManager; -use Drupal\taxonomy\Entity\Term; /** * Class UWService. @@ -549,7 +548,7 @@ class UWService implements UWServiceInterface { foreach ($tids as $tid) { // Load the term. - $term = Term::load($tid['target_id']); + $term = $this->entityTypeManager->getStorage('taxonomy_term')->load($tid['target_id']); // If this is a tags term type, we have to include // url and title. If not just the tag name. -- GitLab