Allow to specify the id

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-03-26 23:07:54 +02:00
parent 918f6fd10b
commit 8d3c461151
No known key found for this signature in database
GPG key ID: E166FD8976B3BAC8

View file

@ -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,