diff options
author | Raimund Schlüßler <raimund.schluessler@mailbox.org> | 2019-09-23 14:42:38 +0300 |
---|---|---|
committer | Raimund Schlüßler <raimund.schluessler@mailbox.org> | 2019-09-23 17:53:42 +0300 |
commit | d82b353d4d96d3f3342986c113a2da089d039fd2 (patch) | |
tree | 14dfc113fe995b0c49e78a1503ba4ae24c858d81 /lib | |
parent | 9103930ae3658e4ee126fd03c528c09a71373114 (diff) |
Move navigation entry to info.xml
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AppInfo/Application.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 03588a05..9a0aee64 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -32,27 +32,4 @@ class Application extends App { public function __construct(array $params=[]) { parent::__construct('tasks', $params); } - - /** - * Register navigation - */ - public function registerNavigation() { - $appName = $this->getContainer()->getAppName(); - $server = $this->getContainer()->getServer(); - $urlGenerator = $server->getURLGenerator(); - - $server->getNavigationManager()->add(function() use ($appName, $server, $urlGenerator) { - return [ - 'id' => $appName, - - 'order' => 100, - - 'href' => $urlGenerator->linkToRoute('tasks.page.index'), - - 'icon' => $urlGenerator->imagePath($appName, 'tasks.svg'), - - 'name' => $server->getL10N($appName)->t('Tasks'), - ]; - }); - } } |