From 7cc5130e8262b8e42df0c2a017cddcca2b6d8c85 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sun, 26 Mar 2017 20:37:39 +0200 Subject: [PATCH] Allow apps to register a setting via info.xml Signed-off-by: Joas Schilling --- lib/private/NavigationManager.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php index 0b1f43d7de..439e49909d 100644 --- a/lib/private/NavigationManager.php +++ b/lib/private/NavigationManager.php @@ -258,6 +258,7 @@ class NavigationManager implements INavigationManager { } $l = $this->l10nFac->get($app); $order = isset($nav['order']) ? $nav['order'] : 100; + $type = isset($nav['type']) ? $nav['type'] : 'link'; $route = $this->urlGenerator->linkToRoute($nav['route']); $icon = isset($nav['icon']) ? $nav['icon'] : 'app.svg'; foreach ([$icon, "$app.svg"] as $i) { @@ -277,6 +278,7 @@ class NavigationManager implements INavigationManager { 'order' => $order, 'href' => $route, 'icon' => $icon, + 'type' => $type, 'name' => $l->t($nav['name']), ]); }