Skip to content
Snippets Groups Projects
Commit 2968b517 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-4704: coding standards

parent 9ec7dc02
No related branches found
No related tags found
2 merge requests!111Tag 1.0.1,!107Feature/istwcms 4704 ebremner layout header footer
...@@ -10,7 +10,6 @@ use Drupal\node\Entity\Node; ...@@ -10,7 +10,6 @@ use Drupal\node\Entity\Node;
use Drupal\node\NodeInterface; use Drupal\node\NodeInterface;
use Drupal\simplify_menu\MenuItems; use Drupal\simplify_menu\MenuItems;
use Drupal\path_alias\AliasManager; use Drupal\path_alias\AliasManager;
use Drupal\taxonomy\Entity\Term;
/** /**
* Class UWService. * Class UWService.
...@@ -549,7 +548,7 @@ class UWService implements UWServiceInterface { ...@@ -549,7 +548,7 @@ class UWService implements UWServiceInterface {
foreach ($tids as $tid) { foreach ($tids as $tid) {
// Load the term. // 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 // If this is a tags term type, we have to include
// url and title. If not just the tag name. // url and title. If not just the tag name.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment