Skip to content
Snippets Groups Projects
Commit 185cb4a3 authored by Peter Epp's avatar Peter Epp
Browse files

Fix create node nav links

parent 8d3ec19a
No related branches found
No related tags found
1 merge request!421Fix create node nav links
Pipeline #175767 passed
......@@ -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()]),
];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment