Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-03-26 21:37:39 +0300
committerJoas Schilling <coding@schilljs.com>2017-03-26 21:37:39 +0300
commit7cc5130e8262b8e42df0c2a017cddcca2b6d8c85 (patch)
tree77d4e2657f950709e5356b275c97237ad4af2193 /lib/private/NavigationManager.php
parent433958e2e38f4d6935f695e482e80693dc0ffeb9 (diff)
Allow apps to register a setting via info.xml
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/NavigationManager.php')
-rw-r--r--lib/private/NavigationManager.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php
index 0b1f43d7de9..439e49909d0 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']),
]);
}