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

github.com/nextcloud/issuetemplate.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2017-01-30 12:59:55 +0300
committerJulius Haertl <jus@bitgrid.net>2017-01-30 12:59:55 +0300
commitef2effb7eb8c237bb2c186190b8a8b7ec88ef4d4 (patch)
tree486b97981de2ab33bfc48397dcba39650aeae284 /lib
parentb51354506ecb36f5aa51e2476a0d1a1f6e7ec567 (diff)
Add icon for settings section in NC12
Diffstat (limited to 'lib')
-rw-r--r--lib/Settings/Section.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/Settings/Section.php b/lib/Settings/Section.php
index 3bda81d..744862d 100644
--- a/lib/Settings/Section.php
+++ b/lib/Settings/Section.php
@@ -24,15 +24,19 @@
namespace OCA\IssueTemplate\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 $urlGenerator;
- public function __construct(IL10N $l) {
+ public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
$this->l = $l;
+ $this->urlGenerator = $urlGenerator;
}
public function getID() {
@@ -46,4 +50,8 @@ class Section implements ISection {
public function getPriority() {
return 30;
}
+
+ public function getIcon() {
+ return $this->urlGenerator->imagePath('issuetemplate', 'app-dark.svg');
+ }
}