diff options
Diffstat (limited to 'lib/Settings/Section.php')
-rw-r--r-- | lib/Settings/Section.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/Settings/Section.php b/lib/Settings/Section.php new file mode 100644 index 000000000..5e1e47476 --- /dev/null +++ b/lib/Settings/Section.php @@ -0,0 +1,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'); + } +}
\ No newline at end of file |