Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
taxonomy_menu_ui
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
taxonomy_menu_ui
Merge requests
!6
Changing menu bundle to current menu name is breaking menu structure.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Changing menu bundle to current menu name is breaking menu structure.
issue/taxonomy_menu_ui-3501383:3501383-changing-menu-bundle
into
3.0.x
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
Shivam Tiwari
requested to merge
issue/taxonomy_menu_ui-3501383:3501383-changing-menu-bundle
into
3.0.x
2 weeks ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
Closes
#3501383
0
0
Merge request reports
Compare
3.0.x
3.0.x (base)
and
latest version
latest version
81fb1e61
1 commit,
2 weeks ago
2 files
+
17
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
taxonomy_menu_ui.install
+
17
−
0
Options
@@ -44,3 +44,20 @@ function taxonomy_menu_ui_update_9001() {
}
}
}
/**
* Changing menu bundle to current menu name is breaking menu structure
* https://www.drupal.org/project/taxonomy_menu_ui/issues/3501383
*/
function
taxonomy_menu_ui_update_9002
()
{
$entities
=
\Drupal
::
entityTypeManager
()
->
getStorage
(
'menu_link_content'
)
->
loadMultiple
();
foreach
(
$entities
as
$entity
)
{
if
(
$entity
->
get
(
'bundle'
)
->
value
!==
'menu_link_content'
)
{
$entity
->
set
(
'bundle'
,
'menu_link_content'
);
$entity
->
save
();
}
}
}
Loading