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

github.com/nextcloud/logreader.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:47:32 +0300
committerMorris Jobke <hey@morrisjobke.de>2017-01-24 20:49:03 +0300
commit0d7e75f4a8aabfc524ba4cd0d5c5a5036e10443f (patch)
treecd52d9b0d3398c3208b5d368ecdf53aace26b0bd /lib
parent99b1dfe467ae46c606b3135d5f6a550d1c90fe37 (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/Section.php17
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/Settings/Section.php b/lib/Settings/Section.php
index 09f48d3..4fe43e7 100644
--- a/lib/Settings/Section.php
+++ b/lib/Settings/Section.php
@@ -22,14 +22,18 @@
namespace OCA\LogReader\Settings;
use OCP\IL10N;
-use OCP\Settings\ISection;
+use OCP\IURLGenerator;
+use OCP\Settings\IIconSection;
-class Section implements ISection {
+class Section 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;
}
/**
@@ -62,4 +66,11 @@ class Section implements ISection {
public function getPriority() {
return 90;
}
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getIcon() {
+ return $this->url->imagePath('logreader', 'app-dark.svg');
+ }
}