Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_sites_all
Commits
8f27c30e
Commit
8f27c30e
authored
Sep 20, 2021
by
Chris Shantz
Browse files
Merge branch '1.0.x' into prod/1.0.x
parents
b64de6b9
df3a3969
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
uw_sites_all.install
uw_sites_all.install
+2
-2
No files found.
uw_sites_all.install
View file @
8f27c30e
...
...
@@ -45,12 +45,12 @@ function uw_sites_all_install() {
foreach
(
$menu_items
as
$menu_item
)
{
// Create the URL from the route name.
$url
=
URL
::
fromRoute
(
$menu_item
[
'route_name'
])
->
toString
();
$url
=
URL
::
fromRoute
(
$menu_item
[
'route_name'
])
->
getInternalPath
();
// Create the actual menu link.
MenuLinkContent
::
create
([
'title'
=>
$menu_item
[
'title'
],
'link'
=>
[
'uri'
=>
'internal:'
.
$url
],
'link'
=>
[
'uri'
=>
'internal:
/
'
.
$url
],
'menu_name'
=>
$menu_item
[
'menu_name'
],
'weight'
=>
$menu_item
[
'weight'
],
'enabled'
=>
$menu_item
[
'enabled'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment