Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hierarchy_manager-3347499
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
hierarchy_manager-3347499
Compare revisions
3.x to 3347499-replace-termloadmultiple-to
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
issue/hierarchy_manager-3347499
Select target project
No results found
3347499-replace-termloadmultiple-to
Select Git revision
Swap
Target
project/hierarchy_manager
Select target project
project/hierarchy_manager
issue/hierarchy_manager-3188871
issue/hierarchy_manager-3188833
issue/hierarchy_manager-3191599
issue/hierarchy_manager-3191605
issue/hierarchy_manager-3205538
issue/hierarchy_manager-3217994
issue/hierarchy_manager-3230813
issue/hierarchy_manager-3241543
issue/hierarchy_manager-3243559
issue/hierarchy_manager-3243579
issue/hierarchy_manager-3278219
issue/hierarchy_manager-3341369
issue/hierarchy_manager-3344493
issue/hierarchy_manager-3343978
issue/hierarchy_manager-3347488
issue/hierarchy_manager-3347499
issue/hierarchy_manager-3343297
issue/hierarchy_manager-3451974
issue/hierarchy_manager-3467198
20 results
3.x
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
View open merge request
Commits on Source (1)
Issue
#3347499
: Replace Term::loadMultiple to $this->entityTypeManager
· c5e2b4e0
renatog
authored
2 years ago
c5e2b4e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Controller/HmTaxonomyController.php
+1
-1
1 addition, 1 deletion
src/Controller/HmTaxonomyController.php
with
1 addition
and
1 deletion
src/Controller/HmTaxonomyController.php
Edit
View file @
c5e2b4e0
...
@@ -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'
))
{
...
...
This diff is collapsed.
Click to expand it.