|
|
@ -301,14 +301,13 @@ class IslandoraUtils { |
|
|
|
if (!empty($results)) { |
|
|
|
if (!empty($results)) { |
|
|
|
$term = $this->entityTypeManager->getStorage('taxonomy_term') |
|
|
|
$term = $this->entityTypeManager->getStorage('taxonomy_term') |
|
|
|
->load(reset($results)); |
|
|
|
->load(reset($results)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->cache->set( |
|
|
|
$this->cache->set( |
|
|
|
$cid, |
|
|
|
$cid, |
|
|
|
$term, |
|
|
|
$term, |
|
|
|
CacheBackendInterface::CACHE_PERMANENT, |
|
|
|
CacheBackendInterface::CACHE_PERMANENT, |
|
|
|
Cache::mergeTags(array_merge($term->getCacheTags(), ['user:' . $this->currentUser->id()])) |
|
|
|
Cache::mergeTags(array_merge($term->getCacheTags(), ['user:' . $this->currentUser->id()])) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return $term; |
|
|
|
return $term; |
|
|
|
} |
|
|
|
} |
|
|
|