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

github.com/nextcloud/user_saml.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:01:34 +0300
committerMorris Jobke <hey@morrisjobke.de>2017-01-24 21:01:34 +0300
commit722e94c0d016f65fe43d6fe4c1211955e2a08b4d (patch)
tree417aa5f07003bb0102d44a8b8ece27aa859af27f /lib
parente82897d828251cff9658a87e5060bb7b13b1ffd9 (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.php20
1 files changed, 14 insertions, 6 deletions
diff --git a/lib/Settings/Section.php b/lib/Settings/Section.php
index c31568be..7f6c218d 100644
--- a/lib/Settings/Section.php
+++ b/lib/Settings/Section.php
@@ -24,17 +24,18 @@
namespace OCA\User_SAML\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
- */
- public function __construct(IL10N $l) {
+ public function __construct(IL10N $l, IURLGenerator $url) {
$this->l = $l;
+ $this->url = $url;
}
/**
@@ -57,4 +58,11 @@ class Section implements ISection {
public function getPriority() {
return 75;
}
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getIcon() {
+ return $this->url->imagePath('user_saml', 'app-dark.svg');
+ }
}