Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gin
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
gin
Commits
185cb4a3
Commit
185cb4a3
authored
1 year ago
by
Peter Epp
Browse files
Options
Downloads
Patches
Plain Diff
Fix create node nav links
parent
8d3ec19a
No related branches found
No related tags found
1 merge request
!421
Fix create node nav links
Pipeline
#175767
passed
1 year ago
Stage: build
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/GinNavigation.php
+1
-2
1 addition, 2 deletions
src/GinNavigation.php
with
1 addition
and
2 deletions
src/GinNavigation.php
+
1
−
2
View file @
185cb4a3
...
...
@@ -91,7 +91,6 @@ class GinNavigation implements ContainerInjectionInterface {
// Get node types.
if
(
$entity_type_manager
->
hasDefinition
(
'node'
))
{
$create_item_url
=
Url
::
fromRoute
(
'node.add_page'
)
->
toString
();
$content_types
=
$entity_type_manager
->
getStorage
(
'node_type'
)
->
loadMultiple
();
$content_type_items
=
[];
...
...
@@ -99,7 +98,7 @@ class GinNavigation implements ContainerInjectionInterface {
$content_type_items
[]
=
[
'title'
=>
$item
->
label
(),
'class'
=>
$item
->
id
(),
'url'
=>
$create_item_url
,
'url'
=>
Url
::
fromRoute
(
'node.add'
,
[
'node_type'
=>
$item
->
id
()])
,
];
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment