Allow to specify the id
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
918f6fd10b
commit
8d3c461151
1 changed files with 2 additions and 1 deletions
|
@ -246,6 +246,7 @@ class NavigationManager implements INavigationManager {
|
|||
continue;
|
||||
}
|
||||
$l = $this->l10nFac->get($app);
|
||||
$id = isset($nav['id']) ? $nav['id'] : $app;
|
||||
$order = isset($nav['order']) ? $nav['order'] : 100;
|
||||
$type = isset($nav['type']) ? $nav['type'] : 'link';
|
||||
$route = $this->urlGenerator->linkToRoute($nav['route']);
|
||||
|
@ -263,7 +264,7 @@ class NavigationManager implements INavigationManager {
|
|||
}
|
||||
|
||||
$this->add([
|
||||
'id' => $app,
|
||||
'id' => $id,
|
||||
'order' => $order,
|
||||
'href' => $route,
|
||||
'icon' => $icon,
|
||||
|
|
Loading…
Reference in a new issue