From ef2effb7eb8c237bb2c186190b8a8b7ec88ef4d4 Mon Sep 17 00:00:00 2001 From: Julius Haertl Date: Mon, 30 Jan 2017 10:59:55 +0100 Subject: Add icon for settings section in NC12 --- lib/Settings/Section.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'lib') 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'); + } } -- cgit v1.2.3