File tree Expand file tree Collapse file tree 3 files changed +19
-8
lines changed
Expand file tree Collapse file tree 3 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 2424namespace OCA \User_SAML \Settings ;
2525
2626use OCP \IL10N ;
27- use OCP \Settings \ISection ;
27+ use OCP \IURLGenerator ;
28+ use OCP \Settings \IIconSection ;
2829
29- class Section implements ISection {
30+ class Section implements IIconSection {
3031 /** @var IL10N */
3132 private $ l ;
33+ /** @var IURLGenerator */
34+ private $ url ;
3235
33- /**
34- * @param IL10N $l
35- */
36- public function __construct (IL10N $ l ) {
36+ public function __construct (IL10N $ l , IURLGenerator $ url ) {
3737 $ this ->l = $ l ;
38+ $ this ->url = $ url ;
3839 }
3940
4041 /**
@@ -57,4 +58,11 @@ public function getName() {
5758 public function getPriority () {
5859 return 75 ;
5960 }
61+
62+ /**
63+ * {@inheritdoc}
64+ */
65+ public function getIcon () {
66+ return $ this ->url ->imagePath ('user_saml ' , 'app-dark.svg ' );
67+ }
6068}
You can’t perform that action at this time.
0 commit comments