File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 <category >office</category >
1313 <category >integration</category >
1414 <dependencies >
15- <nextcloud min-version =" 11 " max-version =" 11 " />
15+ <nextcloud min-version =" 12 " max-version =" 12 " />
1616 </dependencies >
1717 <documentation >
1818 <admin >https://nextcloud.com/collaboraonline/</admin >
Original file line number Diff line number Diff line change 2424namespace OCA \Richdocuments \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 ;
35+
3236 /**
3337 * @param IL10N $l
38+ * @param IURLGenerator $url
3439 */
35- public function __construct (IL10N $ l ) {
40+ public function __construct (IL10N $ l, IURLGenerator $ url ) {
3641 $ this ->l = $ l ;
42+ $ this ->url = $ url ;
3743 }
3844 /**
3945 * {@inheritdoc}
@@ -53,4 +59,11 @@ public function getName() {
5359 public function getPriority () {
5460 return 75 ;
5561 }
62+
63+ /**
64+ * {@inheritdoc}
65+ */
66+ public function getIcon () {
67+ return $ this ->url ->imagePath ('richdocuments ' , 'app-dark.svg ' );
68+ }
5669}
You can’t perform that action at this time.
0 commit comments