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

github.com/nextcloud/survey_client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-01-24 20:19:21 +0300
committerMorris Jobke <hey@morrisjobke.de>2017-01-24 20:19:21 +0300
commit3382efd4220d20dd9a3e5cb95392024ce77038b8 (patch)
tree31c3c3e4c0d3af19786f66ee66d1ebe592a3668a /lib
parentf8c7afbf57beebd03a3949b3202474e02b85c0ed (diff)
Add icon to admin page sidebar
* follow up to nextcloud/server#3151 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Settings/AdminSection.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/Settings/AdminSection.php b/lib/Settings/AdminSection.php
index 3a4ed84..28a0cf9 100644
--- a/lib/Settings/AdminSection.php
+++ b/lib/Settings/AdminSection.php
@@ -24,15 +24,19 @@ namespace OCA\Survey_Client\Settings;
use OCP\IL10N;
-use OCP\Settings\ISection;
+use OCP\IURLGenerator;
+use OCP\Settings\IIconSection;
-class AdminSection implements ISection {
+class AdminSection implements IIconSection {
/** @var IL10N */
private $l;
+ /** @var IURLGenerator */
+ private $url;
- public function __construct(IL10N $l) {
+ public function __construct(IL10N $l, IURLGenerator $url) {
$this->l = $l;
+ $this->url = $url;
}
/**
@@ -63,4 +67,10 @@ class AdminSection implements ISection {
return 80;
}
+ /**
+ * {@inheritdoc}
+ */
+ public function getIcon() {
+ return $this->url->imagePath('survey_client', 'app-dark.svg');
+ }
}