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

app.php « appinfo - github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 113fc0335d7d6d829e8f6646ce18608257e0a350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
 * ownCloud - polls
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Vinzenz Rosenkranz <vinzenz.rosenkranz@gmail.com>
 * @copyright Vinzenz Rosenkranz 2016
 */

namespace OCA\Polls\AppInfo;

$l = \OC::$server->getL10N('polls');

\OC::$server->getNavigationManager()->add(array(
    // the string under which your app will be referenced in owncloud
    'id' => 'polls',

    // sorting weight for the navigation. The higher the number, the higher
    // will it be listed in the navigation
    'order' => 77,

    // the route that will be shown on startup
    'href' => \OC::$server->getURLGenerator()->linkToRoute('polls.page.index'),

    // the icon that will be shown in the navigation
    // this file needs to exist in img/
    'icon' => \OC::$server->getURLGenerator()->imagePath('polls', 'app-logo-polls.svg'),

    // the title of your application. This will be used in the
    // navigation or on the settings page of your app
    'name' => $l->t('Polls')
));