File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 2222namespace OCA \LogReader \Settings ;
2323
2424use OCP \IL10N ;
25- use OCP \Settings \ISection ;
25+ use OCP \IURLGenerator ;
26+ use OCP \Settings \IIconSection ;
2627
27- class Section implements ISection {
28+ class Section implements IIconSection {
2829 /** @var IL10N */
2930 private $ l ;
31+ /** @var IURLGenerator */
32+ private $ url ;
3033
31- public function __construct (IL10N $ l ) {
34+ public function __construct (IL10N $ l, IURLGenerator $ url ) {
3235 $ this ->l = $ l ;
36+ $ this ->url = $ url ;
3337 }
3438
3539 /**
@@ -62,4 +66,11 @@ public function getName() {
6266 public function getPriority () {
6367 return 90 ;
6468 }
69+
70+ /**
71+ * {@inheritdoc}
72+ */
73+ public function getIcon () {
74+ return $ this ->url ->imagePath ('logreader ' , 'app-dark.svg ' );
75+ }
6576}
You can’t perform that action at this time.
0 commit comments