blob: 5e1e474761a9bece51c89f59334c45f366595ddd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?php
namespace OCA\News\Settings;
use OCP\IL10N;
use OCP\IURLGenerator;
use OCP\Settings\ISection;
class Section implements ISection {
private $l;
private $url;
public function __construct(IURLGenerator $url, IL10N $l) {
$this->url = $url;
$this->l = $l;
}
public function getID() {
return 'news';
}
public function getName() {
return $this->l->t('News');
}
public function getPriority() {
return 10;
}
public function getIcon() {
return $this->url->imagePath('news', 'app.svg');
}
}
|