From d82b353d4d96d3f3342986c113a2da089d039fd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Schl=C3=BC=C3=9Fler?= Date: Mon, 23 Sep 2019 13:42:38 +0200 Subject: =?UTF-8?q?Move=20navigation=20entry=20to=20info.xml=20Signed-off-?= =?UTF-8?q?by:=20Raimund=20Schl=C3=BC=C3=9Fler=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/AppInfo/Application.php | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'lib') 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'), - ]; - }); - } } -- cgit v1.2.3