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

github.com/nextcloud/richdocuments.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 21:16:54 +0300
committerMorris Jobke <hey@morrisjobke.de>2017-01-24 21:16:54 +0300
commit18d3498a507f72594a7bc5d1b0436f8cf8cce207 (patch)
tree482105424ac38d7928b357ec55a1c76dca3ce03d /lib
parentf1b886ef52c4ea6154a4d51e975252032a73abbf (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.php19
1 files changed, 16 insertions, 3 deletions
diff --git a/lib/Settings/Section.php b/lib/Settings/Section.php
index 671293c6..25f69dcf 100644
--- a/lib/Settings/Section.php
+++ b/lib/Settings/Section.php
@@ -24,16 +24,22 @@
namespace OCA\Richdocuments\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;
+
/**
* @param IL10N $l
+ * @param IURLGenerator $url
*/
- public function __construct(IL10N $l) {
+ public function __construct(IL10N $l, IURLGenerator $url) {
$this->l = $l;
+ $this->url = $url;
}
/**
* {@inheritdoc}
@@ -53,4 +59,11 @@ class Section implements ISection {
public function getPriority() {
return 75;
}
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getIcon() {
+ return $this->url->imagePath('richdocuments', 'app-dark.svg');
+ }
}