We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 02091bb + 82a6b16 commit aa77ab3Copy full SHA for aa77ab3
2 files changed
img/app-dark.svg
lib/Settings/Section.php
@@ -22,14 +22,18 @@
22
namespace OCA\FilesAccessControl\Settings;
23
24
use OCP\IL10N;
25
-use OCP\Settings\ISection;
+use OCP\IURLGenerator;
26
+use OCP\Settings\IIconSection;
27
-class Section implements ISection {
28
+class Section implements IIconSection {
29
/** @var IL10N */
30
private $l;
31
+ /** @var IURLGenerator */
32
+ private $url;
33
- public function __construct(IL10N $l) {
34
+ public function __construct(IL10N $l, IURLGenerator $url) {
35
$this->l = $l;
36
+ $this->url = $url;
37
}
38
39
/**
@@ -62,4 +66,11 @@ public function getName() {
62
66
public function getPriority() {
63
67
return 70;
64
68
69
+
70
+ /**
71
+ * {@inheritdoc}
72
+ */
73
+ public function getIcon() {
74
+ return $this->url->imagePath('files_accesscontrol', 'app-dark.svg');
75
+ }
65
76
0 commit comments