summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-02-18 09:12:11 +0100
committerJulius Härtl <jus@bitgrid.net>2019-02-18 09:12:11 +0100
commita6b579b772a9966984d46daad82e46ac2905a343 (patch)
tree7f5bbe5f171de80614837617115718ddba3a0a35 /lib
parent1edfffd091ed416d99925d9dc660920560c457fa (diff)
downloadnextcloud-server-a6b579b772a9966984d46daad82e46ac2905a343.tar.gz
nextcloud-server-a6b579b772a9966984d46daad82e46ac2905a343.zip
Add guest navigation type
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Server.php3
-rw-r--r--lib/public/INavigationManager.php21
2 files changed, 22 insertions, 2 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index 89f55fcc9f3..8a49a8a8a94 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -964,7 +964,8 @@ class Server extends ServerContainer implements IServerContainer {
$c->getMemCacheFactory(),
new Util($c->getConfig(), $this->getAppManager(), $c->getAppDataDir('theming')),
new ImageManager($c->getConfig(), $c->getAppDataDir('theming'), $c->getURLGenerator(), $this->getMemCacheFactory(), $this->getLogger()),
- $c->getAppManager()
+ $c->getAppManager(),
+ $c->getNavigationManager()
);
}
return new \OC_Defaults();
diff --git a/lib/public/INavigationManager.php b/lib/public/INavigationManager.php
index 77b881b8b15..f840bc8c8a5 100644
--- a/lib/public/INavigationManager.php
+++ b/lib/public/INavigationManager.php
@@ -39,6 +39,25 @@ namespace OCP;
* @since 6.0.0
*/
interface INavigationManager {
+
+ /**
+ * Navigation entries of the app navigation
+ * @since 16.0.0
+ */
+ const TYPE_APPS = 'link';
+
+ /**
+ * Navigation entries of the settings navigation
+ * @since 16.0.0
+ */
+ const TYPE_SETTINGS = 'settings';
+
+ /**
+ * Navigation entries for public page footer navigation
+ * @since 16.0.0
+ */
+ const TYPE_GUEST = 'guest';
+
/**
* Creates a new navigation entry
*
@@ -65,5 +84,5 @@ interface INavigationManager {
* @return array
* @since 14.0.0
*/
- public function getAll(string $type = 'link'): array;
+ public function getAll(string $type = self::TYPE_APPS): array;
}