Skip to content
Snippets Groups Projects
Commit c5e2b4e0 authored by renatog's avatar renatog Committed by De Araujo, Renato [CONBR Non-J&J]
Browse files

Issue #3347499: Replace Term::loadMultiple to $this->entityTypeManager

parent 0c0dc755
No related branches found
No related tags found
No related merge requests found
...@@ -304,7 +304,7 @@ class HmTaxonomyController extends ControllerBase { ...@@ -304,7 +304,7 @@ class HmTaxonomyController extends ControllerBase {
$tids = array_keys($new_hierarchy); $tids = array_keys($new_hierarchy);
// Load all terms needed to update. // Load all terms needed to update.
$terms = Term::loadMultiple($tids); $terms = $this->entityTypeManager->getStorage('taxonomy_term')->loadMultiple($tids);
// Update all terms. // Update all terms.
foreach ($terms as $term) { foreach ($terms as $term) {
if ($access_control_handler->access($term, 'update')) { if ($access_control_handler->access($term, 'update')) {
......
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